[streambuf.pub.get]

31 Input/output library [input.output]

31.6 Stream buffers [stream.buffers]

31.6.3 Class template basic_streambuf [streambuf]

31.6.3.3 Public member functions [streambuf.members]

31.6.3.3.3 Get area [streambuf.pub.get]

Returns: If a read position is available, returns egptr() - gptr().

Returns: If that function returns traits​::​eof(), returns traits​::​eof().

Otherwise, returns sgetc().

Effects: If the input sequence read position is not available, returns uflow().

Otherwise, returns traits​::​to_int_type(*gptr()) and increments the next pointer for the input sequence.

Returns: If the input sequence read position is not available, returns underflow().

Otherwise, returns traits​::​to_int_type(*gptr()).

streamsize sgetn(char_type* s, streamsize n);