|
Tuesday
|
The sized boolean types and their associated utility structs and functions.
Classes | |
| struct | tue::is_sized_bool< T > |
| Checks if a type is a sized boolean type. More... | |
Typedefs | |
| template<std::size_t Size> | |
| using | tue::sized_bool_t = typename detail_::sized_bool_utils< Size >::type |
A type alias for the sized boolean type (bool8, bool16, bool32, or bool64) with the given size. More... | |
Enumerations | |
| enum | tue::bool8 : std::uint8_t { tue::true8 = UINT8_C(0xFF), tue::false8 = UINT8_C(0x00) } |
| An 8-bit boolean value. More... | |
| enum | tue::bool16 : std::uint16_t { tue::true16 = UINT16_C(0xFFFF), tue::false16 = UINT16_C(0x0000) } |
| A 16-bit boolean value. More... | |
| enum | tue::bool32 : std::uint32_t { tue::true32 = UINT32_C(0xFFFFFFFF), tue::false32 = UINT32_C(0x00000000) } |
| A 32-bit boolean value. More... | |
| enum | tue::bool64 : std::uint64_t { tue::true64 = UINT64_C(0xFFFFFFFFFFFFFFFF), tue::false64 = UINT64_C(0x0000000000000000) } |
| A 64-bit boolean value. More... | |
Functions | |
| template<typename T > | |
| constexpr std::enable_if_t< is_sized_bool< T >::value, T > | tue::operator~ (T b) noexcept |
Computes the bitwise NOT of b. More... | |
| template<typename T > | |
| constexpr std::enable_if_t< is_sized_bool< T >::value, T > | tue::operator& (T lhs, T rhs) noexcept |
Computes the bitwise AND of lhs and rhs. More... | |
| template<typename T > | |
| constexpr std::enable_if_t< is_sized_bool< T >::value, T > | tue::operator| (T lhs, T rhs) noexcept |
Computes the bitwise OR of lhs and rhs. More... | |
| template<typename T > | |
| constexpr std::enable_if_t< is_sized_bool< T >::value, T > | tue::operator^ (T lhs, T rhs) noexcept |
Computes the bitwise XOR of lhs and rhs. More... | |
| template<typename T > | |
| std::enable_if_t< is_sized_bool< T >::value, T & > | tue::operator&= (T &lhs, T rhs) noexcept |
Bitwise ANDs lhs with rhs. More... | |
| template<typename T > | |
| std::enable_if_t< is_sized_bool< T >::value, T & > | tue::operator|= (T &lhs, T rhs) noexcept |
Bitwise ORs lhs with rhs. More... | |
| template<typename T > | |
| std::enable_if_t< is_sized_bool< T >::value, T & > | tue::operator^= (T &lhs, T rhs) noexcept |
Bitwise XORs lhs with rhs. More... | |
| struct tue::is_sized_bool |
Checks if a type is a sized boolean type.
Extends std::integral_constant<bool, true> for the following types and std::integral_constant<bool, false> otherwise:
tue::bool8tue::bool16tue::bool32tue::bool64| T | The type to check. |
| using tue::sized_bool_t = typedef typename detail_::sized_bool_utils<Size>::type |
A type alias for the sized boolean type (bool8, bool16, bool32, or bool64) with the given size.
| Size | The desired sized boolean type size (in bytes). |
| enum tue::bool8 : std::uint8_t |
| enum tue::bool16 : std::uint16_t |
| enum tue::bool32 : std::uint32_t |
| enum tue::bool64 : std::uint64_t |
|
inlinenoexcept |
Computes the bitwise NOT of b.
| T | The type of parameter 'b'. |
| b | A sized boolean value. |
b.
|
inlinenoexcept |
Computes the bitwise AND of lhs and rhs.
| T | The type of parameters lhs and rhs. |
| lhs | The left-hand side operand. |
| rhs | The right-hand side operand. |
lhs and rhs.
|
inlinenoexcept |
Computes the bitwise OR of lhs and rhs.
| T | The type of parameters lhs and rhs. |
| lhs | The left-hand side operand. |
| rhs | The right-hand side operand. |
lhs and rhs.
|
inlinenoexcept |
Computes the bitwise XOR of lhs and rhs.
| T | The type of parameters lhs and rhs. |
| lhs | The left-hand side operand. |
| rhs | The right-hand side operand. |
lhs and rhs.
|
inlinenoexcept |
Bitwise ANDs lhs with rhs.
| T | The type of parameters lhs and rhs. |
| lhs | The left-hand side operand. |
| rhs | The right-hand side operand. |
lhs.
|
inlinenoexcept |
Bitwise ORs lhs with rhs.
| T | The type of parameters lhs and rhs. |
| lhs | The left-hand side operand. |
| rhs | The right-hand side operand. |
lhs.
|
inlinenoexcept |
Bitwise XORs lhs with rhs.
| T | The type of parameters lhs and rhs. |
| lhs | The left-hand side operand. |
| rhs | The right-hand side operand. |
lhs.
1.8.10