41 if (!traits_type::eq_int_type(ch, traits_type::eof()))
53 template <
typename T, FMT_ENABLE_IF(is_
integral<T>::value)>
converter(
T);
62template <
typename Char,
typename Traits>
64template <
typename Char,
typename Traits>
66template <
typename Traits>
68template <
typename Traits>
70template <
typename Traits>
90 static const bool value = result::value;
94template <
typename Char>
96 const Char* buf_data = buf.data();
98 unsigned_streamsize size = buf.size();
99 unsigned_streamsize max_size =
to_unsigned(max_value<std::streamsize>());
101 unsigned_streamsize n = size <= max_size ? size : max_size;
108template <
typename Char,
typename T>
113#if !defined(FMT_STATIC_THOUSANDS_SEPARATOR)
117 output.
exceptions(std::ios_base::failbit | std::ios_base::badbit);
118 buf.try_resize(buf.size());
122template <
typename T,
typename Char>
124 :
private formatter<basic_string_view<Char>, Char> {
126 ->
decltype(ctx.begin()) {
129 template <
typename ParseCtx,
132 auto parse(ParseCtx& ctx) ->
decltype(ctx.begin()) {
136 template <
typename OutputIt>
144 template <
typename OutputIt>
149 return std::copy(buffer.begin(), buffer.end(), ctx.out());
155template <
typename Char>
159 detail::vformat_to(
buffer, format_str, args);
173template <
typename S,
typename... Args,
174 typename Char = enable_if_t<detail::is_string<S>::value,
char_t<S>>>
176 vprint(os, to_string_view(format_str),
177 fmt::make_args_checked<Args...>(format_str, args...));
void append(const U *begin, const U *end)
void push_back(const T &value)
decltype(test< T >(0)) result
static std::false_type test(...)
static bool_constant<!std::is_same< decltype(std::declval< test_stream< Char > & >()<< std::declval< U >()), void_t<> ::value test(int)
std::basic_string< Char > format(const text_style &ts, const S &format_str, const Args &... args)
typename detail::char_t_impl< S >::type char_t
constexpr auto count() -> size_t
#define FMT_BEGIN_NAMESPACE
#define FMT_MODULE_EXPORT
#define FMT_ENABLE_IF(...)
FMT_CONSTEXPR auto to_unsigned(Int value) -> typename std::make_unsigned< Int >::type
typename type_identity< T >::type type_identity_t
#define FMT_END_NAMESPACE
void format_value(buffer< Char > &buf, const T &value, locale_ref loc=locale_ref())
void_t operator<<(std::basic_ostream< Char, Traits > &, Char)
void write_buffer(std::basic_ostream< Char > &os, buffer< Char > &buf)
FMT_MODULE_EXPORT void vprint(std::basic_ostream< Char > &os, basic_string_view< Char > format_str, basic_format_args< buffer_context< type_identity_t< Char > > > args)
FMT_MODULE_EXPORT void print(std::basic_ostream< Char > &os, const S &format_str, Args &&... args)
void_t operator<<(converter)