#include <format.h>
Classes | |
struct | double_writer |
struct | inf_or_nan_writer |
struct | int_writer |
struct | padded_int_writer |
struct | str_writer |
Public Types | |
typedef Range::value_type | char_type |
typedef basic_format_specs< char_type > | format_specs |
Public Member Functions | |
basic_writer (Range out, internal::locale_ref loc=internal::locale_ref()) | |
iterator | out () const |
void | write (int value) |
void | write (long value) |
void | write (long long value) |
void | write (unsigned value) |
void | write (unsigned long value) |
void | write (unsigned long long value) |
template<typename T , typename FormatSpec , typename... FormatSpecs> | |
std::enable_if< std::is_integral< T >::value, void >::type | write (T value, FormatSpec spec, FormatSpecs...specs) |
void | write (double value) |
void | write (long double value) |
void | write (char value) |
void | write (wchar_t value) |
void | write (string_view value) |
void | write (wstring_view value) |
template<typename Char > | |
void | write (const Char *s, std::size_t size, const align_spec &spec) |
template<typename Char > | |
void | write (basic_string_view< Char > s, const format_specs &spec=format_specs()) |
template<typename T > | |
std::enable_if< std::is_same< T, void >::value >::type | write (const T *p) |
Public Attributes | |
decltype(internal::declval< Range >().begin()) typedef | iterator |
Private Types | |
enum | { INF_SIZE = 3 } |
Private Member Functions | |
auto | reserve (std::size_t n) -> decltype(internal::reserve(out_, n)) |
template<typename F > | |
void | write_padded (const align_spec &spec, F &&f) |
template<typename Spec , typename F > | |
void | write_int (int num_digits, string_view prefix, const Spec &spec, F f) |
template<typename Int > | |
void | write_decimal (Int value) |
template<typename T , typename Spec > | |
void | write_int (T value, const Spec &spec) |
template<typename T > | |
void | write_double (T value, const format_specs &spec) |
Private Attributes | |
iterator | out_ |
internal::locale_ref | locale_ |
Friends | |
template<typename Char > | |
class | internal::arg_formatter_base |
This template provides operations for formatting and writing data into a character range.
typedef Range::value_type basic_writer< Range >::char_type |
typedef basic_format_specs<char_type> basic_writer< Range >::format_specs |
|
private |
|
inlineexplicit |
|
inline |
|
inlineprivate |
Definition at line 2271 of file format.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Formats value and writes it to the buffer.
Definition at line 2588 of file format.h.
|
inline |
Definition at line 2594 of file format.h.
|
inline |
Formats value using the general format for floating-point numbers ('g'
) and writes it to the buffer.
Definition at line 2604 of file format.h.
|
inline |
Writes a character to the buffer.
Definition at line 2609 of file format.h.
|
inline |
Definition at line 2612 of file format.h.
|
inline |
Writes value to the buffer.
Definition at line 2622 of file format.h.
|
inline |
Definition at line 2626 of file format.h.
|
inline |
Definition at line 2634 of file format.h.
|
inline |
Definition at line 2639 of file format.h.
|
inline |
Definition at line 2650 of file format.h.
|
inlineprivate |
Definition at line 2349 of file format.h.
|
private |
Definition at line 2698 of file format.h.
|
inlineprivate |
Definition at line 2326 of file format.h.
|
inlineprivate |
Definition at line 2499 of file format.h.
|
inlineprivate |
Definition at line 2279 of file format.h.
decltype(internal::declval<Range>().begin()) typedef basic_writer< Range >::iterator |
|
private |
|
private |