10 #ifndef FMT_OSTREAM_H_ 11 #define FMT_OSTREAM_H_ 26 typedef typename std::basic_streambuf<Char>::int_type
int_type;
27 typedef typename std::basic_streambuf<Char>::traits_type
traits_type;
35 this->setp(start_, start_ + buffer_.
capacity());
38 int_type
overflow(int_type ch = traits_type::eof())
40 if (!traits_type::eq_int_type(ch, traits_type::eof()))
42 size_t buf_size =
size();
47 start_[buf_size] = traits_type::to_char_type(ch);
48 this->setp(start_+ buf_size + 1, start_ + buf_size * 2);
65 void operator<<(Null<>);
76 value =
sizeof(
convert(get<DummyStream>() << get<T>())) ==
sizeof(
No)
82 template <
typename Char,
typename ArgFormatter,
typename T>
84 const Char *&format_str,
const T &value)
89 std::basic_ostream<Char>
output(&format_buf);
94 format_str = f.
format(format_str, MakeArg(str));
122 #ifdef FMT_HEADER_ONLY 126 #endif // FMT_OSTREAM_H_
void resize(std::size_t new_size)
FMT_API void print(std::FILE *f, CStringRef format_str, ArgList args)
std::string format(CStringRef format_str, ArgList args)
std::size_t capacity() const
Yes & convert(fmt::ULongLong)
MakeUnsigned< Int >::Type to_unsigned(Int value)
No & operator<<(std::ostream &, int)
void reserve(std::size_t capacity)
FMT_API int fprintf(std::FILE *f, CStringRef format, ArgList args)