Template Struct format_part

Struct Documentation

template<typename Char>
struct format_part

Public Types

enum kind

Values:

arg_index
arg_name
text
replacement

Public Functions

format_part(kind k = kind::arg_index, value v = {})

Public Members

kind part_kind
union fmt::v6::internal::format_part::value val
const Char *arg_id_end = nullptr

Public Static Functions

static format_part make_arg_index(int index)
static format_part make_arg_name(basic_string_view<Char> name)
static format_part make_text(basic_string_view<Char> text)
static format_part make_replacement(replacement repl)
struct replacement

Public Members

template<>
arg_ref<Char> arg_id
template<>
dynamic_format_specs<Char> specs
union value

Public Functions

template<>
value(int index = 0)
template<>
value(basic_string_view<Char> s)
template<>
value(replacement r)

Public Members

template<>
int arg_index
template<>
basic_string_view<Char> str
template<>
replacement repl