Template Class arg_formatter_base

Class Documentation

template<typename Range, typename ErrorHandler = internal::error_handler>
class fmt::v6::internal::arg_formatter_base

Public Types

using char_type = typename Range::value_type
using iterator = typename Range::iterator
using format_specs = basic_format_specs<char_type>

Public Functions

arg_formatter_base(Range r, format_specs *s, locale_ref loc)
iterator operator()(monostate)
template<typename T, enable_if_t<(is_integral<T>::value), int> = 0>
iterator operator()(T value)
iterator operator()(char_type value)
iterator operator()(bool value)
template<typename T, enable_if_t<(std::is_floating_point<T>::value), int> = 0>
iterator operator()(T value)
iterator operator()(const char_type *value)
iterator operator()(basic_string_view<char_type> value)
iterator operator()(const void *value)

Protected Functions

writer_type &writer()
format_specs *spec()
format_specs *specs()
iterator out()
void write(bool value)
void write(const char_type *value)
struct char_spec_handler : public ErrorHandler

Public Functions

char_spec_handler(arg_formatter_base &f, char_type val)
void on_int()
void on_char()

Public Members

arg_formatter_base &formatter
char_type value
struct cstring_spec_handler : public fmt::v6::internal::error_handler

Public Functions

cstring_spec_handler(arg_formatter_base &f, const char_type *val)
void on_string()
void on_pointer()

Public Members

arg_formatter_base &formatter
const char_type *value