|
microfmt
Zero-allocation C++ formatting for constrained environments
|
Value-type pointer storing a 32-bit address (for 64-bit hosts). More...
#include <compat32.hpp>
Public Types | |
| using | element_type = T |
| Referenced element type. | |
Public Member Functions | |
| constexpr | compat32_ptr () noexcept |
| Constructs a null pointer. | |
| constexpr | compat32_ptr (std::nullptr_t) noexcept |
| Constructs a null pointer. | |
| constexpr | compat32_ptr (uint32_t addr) noexcept |
| Constructs a pointer from a 32-bit address. | |
| constexpr uint32_t | raw_value () const noexcept |
| Returns the raw 32-bit address. | |
| constexpr uintptr_t | to_uintptr () const noexcept |
| Widens the address to a host pointer-size integer. | |
| constexpr bool | is_null () const noexcept |
| Reports whether the pointer is null. | |
| constexpr | operator bool () const noexcept |
| Reports whether the pointer is non-null. | |
| constexpr bool | operator== (const compat32_ptr &other) const noexcept |
| Compares two pointers for equality. | |
| constexpr bool | operator!= (const compat32_ptr &other) const noexcept |
| Compares two pointers for inequality. | |
| constexpr bool | operator== (std::nullptr_t) const noexcept |
| Compares against null. | |
| constexpr bool | operator!= (std::nullptr_t) const noexcept |
| Compares against null. | |
Value-type pointer storing a 32-bit address (for 64-bit hosts).
| T | Referenced object type. |
| using microfmt::compat32_ptr< T >::element_type = T |
Referenced element type.
|
inlineconstexprnoexcept |
Constructs a null pointer.
|
inlineexplicitconstexprnoexcept |
Constructs a null pointer.
|
inlineexplicitconstexprnoexcept |
Constructs a pointer from a 32-bit address.
|
inlineconstexprnoexcept |
Reports whether the pointer is null.
true when the address is zero.
|
inlineexplicitconstexprnoexcept |
Reports whether the pointer is non-null.
true when the address is non-zero.
|
inlineconstexprnoexcept |
Compares two pointers for inequality.
|
inlineconstexprnoexcept |
Compares against null.
|
inlineconstexprnoexcept |
Compares two pointers for equality.
|
inlineconstexprnoexcept |
Compares against null.
|
inlineconstexprnoexcept |
Returns the raw 32-bit address.
|
inlineconstexprnoexcept |
Widens the address to a host pointer-size integer.
uintptr_t.