xentara-utils v1.2.1
Xentara utilities library
|
A type that can store all the bits of the type. More...
#include <numeric/IeeeFloatingPointTraits.hpp>
Public Member Functions | |
constexpr auto | operator&= (const Bits &rhs) noexcept -> Bits & |
Bitwise AND assignment operator. | |
constexpr auto | operator|= (const Bits &rhs) noexcept -> Bits & |
Bitwise OR assignment operator. | |
constexpr auto | operator^= (const Bits &rhs) noexcept -> Bits & |
Bitwise XOR assignment operator. | |
constexpr auto | operator~ () const noexcept -> Bits |
Bitwise XOR assignment operator. | |
constexpr auto | operator- () const noexcept -> Bits |
Negation operator. | |
constexpr auto | size () const noexcept -> std::size_t |
Gets the number of bytes. | |
constexpr auto | operator[] (std::size_t index) const noexcept -> const std::byte & |
Accesses a certain byte. | |
constexpr auto | operator[] (std::size_t index) noexcept -> std::byte & |
Accesses a certain byte. | |
Public Attributes | |
std::byte | bytes [sizeof(Type)] |
The actual bytes. | |
A type that can store all the bits of the type.
For types that are not IEEE floating point types, this class is an empty dummy class.
|
constexprnoexcept |
Bitwise AND assignment operator.
|
constexprnoexcept |
Negation operator.
|
constexprnoexcept |
Accesses a certain byte.
index | The index of the byte. Index 0 is always the least significant byte, regardless of endianness. |
|
constexprnoexcept |
Accesses a certain byte.
index | The index of the byte. Index 0 is always the least significant byte, regardless of endianness. |
|
constexprnoexcept |
Bitwise XOR assignment operator.
|
constexprnoexcept |
Bitwise OR assignment operator.
|
constexprnoexcept |
Bitwise XOR assignment operator.
|
constexprnoexcept |
Gets the number of bytes.
std::byte xentara::utils::numeric::IeeeFloatingPointTraits< Type >::Bits::bytes[sizeof(Type)] |
The actual bytes.