|
KTL
|
A packed pointer-like type which takes advantage of any bits that don't get used due to alignment. More...
#include <packed_ptr.h>
Public Member Functions | |
| packed_ptr () noexcept | |
| template<typename Int > | |
| packed_ptr (PtrT p, Int value) noexcept | |
| operator bool () const noexcept | |
| PtrT | get_ptr () const noexcept |
| template<typename Int > | |
| Int | get_int () const noexcept |
| void | set_ptr (PtrT p) noexcept |
| template<typename Int > | |
| void | set_int (Int value) noexcept |
Static Public Attributes | |
| static constexpr uintmax_t | FREE_BITS = detail::log2(Alignment) |
A packed pointer-like type which takes advantage of any bits that don't get used due to alignment.
| PtrT | The pointer type to use |
|
inlinenoexcept |
|
inlineexplicitnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineexplicitnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
staticconstexpr |