![]() |
C++ Library Extensions 2022.12.09
To help learn modern C++ programming
|
#include <cpg_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 > requires std::floating_point<S> || std::integral<S> | |
| bit_pattern & | operator= (S s) noexcept |
| template<typename S > requires std::floating_point<S> || std::integral<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 378 of file cpg_bitwise.hpp.
|
inlinenoexcept |
Definition at line 410 of file cpg_bitwise.hpp.
|
inlinenoexcept |
Definition at line 416 of file cpg_bitwise.hpp.
|
inlinenoexcept |
Definition at line 398 of file cpg_bitwise.hpp.
|
inlinenoexcept |
Definition at line 404 of file cpg_bitwise.hpp.
|
inlinenoexcept |
Definition at line 442 of file cpg_bitwise.hpp.
|
inlinenoexcept |
Definition at line 423 of file cpg_bitwise.hpp.
| union { ... } cpg::bitwise::bit_pattern< T >::@1 |
| std::byte cpg::bitwise::bit_pattern< T >::b[byte_size] |
Definition at line 394 of file cpg_bitwise.hpp.
|
staticconstexpr |
Definition at line 386 of file cpg_bitwise.hpp.
|
staticconstexpr |
Definition at line 380 of file cpg_bitwise.hpp.
|
staticconstexpr |
Definition at line 382 of file cpg_bitwise.hpp.
|
staticconstexpr |
Definition at line 381 of file cpg_bitwise.hpp.
| T cpg::bitwise::bit_pattern< T >::n {} |
Definition at line 391 of file cpg_bitwise.hpp.