streambuf::gptr


protected member function
char * gptr ( ) const;

Pointer to current position of input sequence

Returns a reference to the current element of the controlled input sequence (i.e., the "get pointer").

The controlled input sequence is directly available (either in part or in its entirety) for other members of the class through three pointers returned by the following protected member functions:
  • eback: Beginning of accessible input sequence
  • gptr: Current position in input sequence ("get pointer")
  • egptr: End of accessible input sequence


Parameters

none

Return Value

A reference to the current element in the input sequence.

Basic template member declaration

( basic_streambuf<charT,traits> )
1
2
typedef charT char_type;
char_type *gptr ( ) const;


See also