2
3
4
5
6
7
8
16 const char *data = w.data();
17 typedef internal::MakeUnsigned<
std::streamsize>::Type UnsignedStreamSize;
18 UnsignedStreamSize size = w.size();
19 UnsignedStreamSize max_size =
20 internal::to_unsigned((
std::numeric_limits<
std::streamsize>::max)());
22 UnsignedStreamSize n = size <= max_size ? size : max_size;
23 os.write(data,
static_cast<
std::streamsize>(n));
32 w.write(format_str, args);
FMT_FUNC void write(std::ostream &os, Writer &w)
FMT_FUNC void print(std::ostream &os, CStringRef format_str, ArgList args)