protected member function
<streambuf> <iostream>
Pointer to current position of input sequence
Returns a pointer to the current element of the controlled input sequence (i.e., the "get pointer").
This is a pointer to an element of an array representing the portion of the controlled input sequence that is currently buffered, and thus directly accessible by other member functions. This buffered subsequence is described by the pointers returned by the following protected member functions:
member | descritpion |
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 |
Return Value
A pointer to the current element in the controlled input sequence.
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
- streambuf::eback
- Pointer to beginning of input sequence (protected member function)
- streambuf::egptr
- Pointer to end of input sequence (protected member function)
- streambuf::pptr
- Pointer to current position of output sequence (protected member function)