|
microfmt
Zero-allocation C++ formatting for constrained environments
|
#include <pointer.hpp>

Public Member Functions | |
| MICROFMT_API_CONSTEXPR void | parse (format_parse_context &ctx) noexcept |
| MICROFMT_API void | format (const raw_ptr_view &ptr, const sink &out) const noexcept |
Public Attributes | |
| bool | uppercase_hex {false} |
| bool | show_prefix {true} |
| ptr_width_mode | mode {ptr_width_mode::native} |
| size_t | custom_width {0} |
| microfmt::string_view | null_representation {"(nil)"} |
Static Public Attributes | |
| static constexpr size_t | native_hex_width = sizeof(uintptr_t) * 2 |
Formatter for raw_ptr_view.
p and P emit lower- or upper-case hexadecimal with 0x/0X prefixes; x and X omit those prefixes. 32 and 64 select fixed compatibility widths, 0N selects a minimum N-digit width, and z renders null as 0x0 instead of (nil).
|
noexcept |
|
noexcept |
| size_t microfmt::formatter< raw_ptr_view >::custom_width {0} |
|
staticconstexpr |
| microfmt::string_view microfmt::formatter< raw_ptr_view >::null_representation {"(nil)"} |
| bool microfmt::formatter< raw_ptr_view >::show_prefix {true} |
| bool microfmt::formatter< raw_ptr_view >::uppercase_hex {false} |