27
Input/output library
[input.output]
27.6
Stream buffers
[stream.buffers]
27.6.3
Class template
basic_streambuf
[streambuf]
27.6.3.2
basic_streambuf
public member functions
[streambuf.members]
27.6.3.2.5
Put area
[streambuf.pub.put]
🔗
int_type sputc(char_type c);
1
#
Returns:
If the output sequence write position is not available, returns
overflow(traits::to_int_type(c))
.
Otherwise, stores
c
at the next pointer for the output sequence, increments the pointer, and returns
traits::to_int_type(c)
.
🔗
streamsize sputn(const char_type* s, streamsize n);
2
#
Returns:
xsputn(s, n)
.