cplusplus.com cplusplus.com
cplusplus.com   C++ : Reference : IOstream Library : streambuf : egptr
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forum
Reference
C Library
IOstream Library
Strings library
STL Containers
STL Algorithms
IOstream Library
manipulators
classes:
· filebuf
· fstream
· ifstream
· ios
· iostream
· ios_base
· istream
· istringstream
· ofstream
· ostream
· ostringstream
· streambuf
· stringbuf
· stringstream
objects:
· cerr
· cin
· clog
· cout
types:
· fpos
· streamoff
· streampos
· streamsize
streambuf
· streambuf::streambuf
· streambuf::~streambuf
public members:
· streambuf::getloc
· streambuf::in_avail
· streambuf::pubimbue
· streambuf::pubseekoff
· streambuf::pubseekpos
· streambuf::pubsetbuf
· streambuf::pubsync
· streambuf::sbumpc
· streambuf::sgetc
· streambuf::sgetn
· streambuf::snextc
· streambuf::sputbackc
· streambuf::sputc
· streambuf::sputn
· streambuf::sungetc
protected members:
· streambuf::eback
· streambuf::egptr
· streambuf::epptr
· streambuf::gbump
· streambuf::gptr
· streambuf::pbase
· streambuf::pbump
· streambuf::pptr
· streambuf::setg
· streambuf::setp
virtual prot. members:
· streambuf::imbue
· streambuf::overflow
· streambuf::pbackfail
· streambuf::seekoff
· streambuf::seekpos
· streambuf::setbuf
· streambuf::showmanyc
· streambuf::sync
· streambuf::uflow
· streambuf::underflow
· streambuf::xsgetn
· streambuf::xsputn

-

streambuf::egptr protected member function
char * egptr ( ) const;

Pointer to end of input sequence

Returns a pointer just past the last element of the accessible part of the controlled input sequence.

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 pointer to the element that would follow the last element of the accessible part of the controlled input sequence.

Basic template member declaration

( basic_streambuf<charT,traits> )
typedef charT char_type;
char_type * egptr ( ) const;

See also

streambuf::eback Pointer to beginning of input sequence (protected member function)
streambuf::gptr Pointer to current position of input sequence (protected member function)
streambuf::epptr Pointer to end of output sequence (protected member function)

© The C++ Resources Network, 2000-2007 - All rights reserved
Spotted an error? - contact us