![]() |
C++ Library Extensions 2022.12.09
To help learn modern C++ programming
|
#include <tpf_bitwise.hpp>
Public Member Functions | |
const std::byte & | msb () const noexcept |
std::byte & | msb () noexcept |
const std::byte & | lsb () const noexcept |
std::byte & | lsb () noexcept |
template<typename S , typename = tpf::types::enable_if_numerical_number_t<S>> | |
bit_pattern & | operator= (S s) noexcept |
template<typename S , typename = tpf::types::enable_if_numerical_number_t<S>> | |
operator S () const noexcept | |
Public Attributes | |
union { | |
T n {} | |
std::byte b [byte_size] | |
}; | |
Static Public Attributes | |
static constexpr size_t | byte_size = sizeof(T) |
static constexpr T | min_limit = std::numeric_limits<T>::min() |
static constexpr T | max_limit = std::numeric_limits<T>::max() |
static constexpr size_t | bit_size = sizeof(T) * 8 |
Definition at line 344 of file tpf_bitwise.hpp.
|
inlinenoexcept |
Definition at line 376 of file tpf_bitwise.hpp.
|
inlinenoexcept |
Definition at line 382 of file tpf_bitwise.hpp.
|
inlinenoexcept |
Definition at line 364 of file tpf_bitwise.hpp.
|
inlinenoexcept |
Definition at line 370 of file tpf_bitwise.hpp.
|
inlinenoexcept |
Definition at line 406 of file tpf_bitwise.hpp.
|
inlinenoexcept |
Definition at line 388 of file tpf_bitwise.hpp.
union { ... } tpf::bitwise::bit_pattern< T, typename >::@5 |
std::byte tpf::bitwise::bit_pattern< T, typename >::b[byte_size] |
Definition at line 360 of file tpf_bitwise.hpp.
|
staticconstexpr |
Definition at line 352 of file tpf_bitwise.hpp.
|
staticconstexpr |
Definition at line 346 of file tpf_bitwise.hpp.
|
staticconstexpr |
Definition at line 348 of file tpf_bitwise.hpp.
|
staticconstexpr |
Definition at line 347 of file tpf_bitwise.hpp.
T tpf::bitwise::bit_pattern< T, typename >::n {} |
Definition at line 357 of file tpf_bitwise.hpp.