protected member function
<streambuf> <iostream>

std::basic_streambuf::egptr

char_type* egptr() const;
Pointer to end of input sequence
Returns a pointer to the element just past the last element of the array with the portion of the controlled input sequence that is currently buffered.

Member functions can access this array directly; It is described by the pointers returned by the following protected member functions:

memberdescritpion
eback()Beginning of the buffered part of the input sequence
gptr()Current position in the input sequence ("get pointer")
egptr()End of the buffered part of the input sequence

Parameters

none

Return Value

A pointer to the past-the-end element of an array with the part of the controlled input sequence that is currently buffered.
Member type char_type is the type of the characters in the stream buffer (the first class template parameter).

Data races

Accesses the stream buffer object.
Concurrent access to the same stream buffer object may cause data races.

Exception safety

Strong guarantee: if an exception is thrown, there are no changes in the stream buffer.

See also