Template Struct format_part

Struct Documentation

template<typename Char>
struct fmt::v6::internal::format_part

Public Types

enum kind

Values:

enumerator arg_index
enumerator arg_name
enumerator text
enumerator 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

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

Public Members

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

Public Functions

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

Public Members

int arg_index
basic_string_view<Char> str
replacement repl