Template Struct basic_writer::int_writer

Struct Documentation

template<typename Int, typename Specs>
struct fmt::v6::internal::basic_writer::int_writer

Public Types

enum [anonymous]

Values:

enumerator sep_size = 1
using unsigned_type = uint32_or_64_or_128_t<Int>

Public Functions

string_view get_prefix() const
int_writer(basic_writer<Range> &w, Int value, const Specs &s)
void on_dec()
void on_hex()
void on_bin()
void on_oct()
void on_num()
void on_error()

Public Members

basic_writer<Range> &writer
const Specs &specs
unsigned_type abs_value
char prefix[4]
unsigned prefix_size
template<int BITS>
struct bin_writer

Public Functions

template<typename It>
void operator()(It &&it) const

Public Members

unsigned_type abs_value
int num_digits
struct dec_writer

Public Functions

template<typename It>
void operator()(It &&it) const

Public Members

unsigned_type abs_value
int num_digits
struct hex_writer

Public Functions

template<typename It>
void operator()(It &&it) const

Public Members

int_writer &self
int num_digits
struct num_writer

Public Functions

template<typename It>
void operator()(It &&it) const

Public Members

unsigned_type abs_value
int size
const std::string &groups
char_type sep