10 #ifndef FMT_OSTREAM_H_ 11 #define FMT_OSTREAM_H_ 24 typedef typename std::basic_streambuf<Char>::int_type int_type;
25 typedef typename std::basic_streambuf<Char>::traits_type traits_type;
43 int_type overflow(int_type ch = traits_type::eof()) FMT_OVERRIDE
45 if (!traits_type::eq_int_type(ch, traits_type::eof()))
46 buffer_.push_back(static_cast<Char>(ch));
50 std::streamsize xsputn(
const Char *s, std::streamsize count) FMT_OVERRIDE
52 buffer_.
append(s, s + count);
57 Yes &convert(std::ostream &);
68 No &operator<<(std::ostream &,
int);
76 value =
sizeof(convert(get<DummyStream>() << get<T>())) ==
sizeof(No)
81 FMT_API
void write(std::ostream &os,
Writer &w);
85 template<
typename Char,
typename ArgFormatter_,
typename T>
91 std::basic_ostream<Char> output(&format_buf);
92 output.exceptions(std::ios_base::failbit | std::ios_base::badbit);
97 format_str = f.
format(format_str, MakeArg(str));
110 FMT_VARIADIC(
void, print, std::ostream &,
CStringRef)
113 #ifdef FMT_HEADER_ONLY 114 #include "ostream.cc" 117 #endif // FMT_OSTREAM_H_ Definition: format.h:1450
Definition: format.h:1876
Definition: format.h:1819
Definition: format.h:1506
std::size_t size() const
Definition: format.h:842
void append(const U *begin, const U *end)
Definition: format.h:902