ipaddress 1.1.0
|
Provides the byte_array template class for handling fixed-size byte arrays. More...
#include "config.hpp"
Go to the source code of this file.
Classes | |
struct | byte_array< N > |
A template class for creating and managing a fixed-size array of bytes. More... | |
Namespaces | |
namespace | ipaddress |
Namespace dedicated to IP addresses and networks operations. | |
Functions | |
template<size_t N> | |
constexpr inline bool | operator== (const byte_array< N > &lhs, const byte_array< N > &rhs) noexcept |
Checks if two byte_array objects are equal. | |
template<size_t N> | |
constexpr inline bool | operator!= (const byte_array< N > &lhs, const byte_array< N > &rhs) noexcept |
Checks if two byte_array objects are not equal. | |
template<size_t N> | |
constexpr inline bool | operator< (const byte_array< N > &lhs, const byte_array< N > &rhs) noexcept |
Determines if one byte_array is less than another. | |
template<size_t N> | |
constexpr inline bool | operator> (const byte_array< N > &lhs, const byte_array< N > &rhs) noexcept |
Determines if one byte_array is greater than another. | |
template<size_t N> | |
constexpr inline bool | operator<= (const byte_array< N > &lhs, const byte_array< N > &rhs) noexcept |
Determines if one byte_array is less than or equal to another. | |
template<size_t N> | |
constexpr inline bool | operator>= (const byte_array< N > &lhs, const byte_array< N > &rhs) noexcept |
Determines if one byte_array is greater than or equal to another. | |
Provides the byte_array template class for handling fixed-size byte arrays.
The byte_array template class is designed to encapsulate a fixed-size array of bytes (uint8_t), providing various type definitions for ease of use, and methods for accessing the array elements. Intended for use in managing IP address representations and manipulations. The class ensures that the array size is constant and known at compile-time, offering a compile-time guarantee of array bounds, which can prevent common errors associated with dynamic arrays.