cplusplus.com cplusplus.com
cplusplus.com   C++ : Reference : IOstream Library : streambuf : setp
- -
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::setp protected member function
void setp ( char* pbeg, char* pnext, char* pend );

Set output sequence pointers

Sets the values that define both the boundaries of the accessible part of the controlled output sequence and the put pointer itself.

Parameters

pbeg
New value for the pointer to the beginning of the accessible part of the controlled output sequence.
pnext
New value for the put pointer, which points to the next element within the controlled output sequence where the next output operation shall be performed.
pend
New value for the end pointer, just past the end of the accessible part of the controlled output sequence.

Return Value

none

Basic template member declaration

( basic_streambuf<charT,traits> )
typedef charT char_type;
void setp ( char_type* pbeg, char_type* pnext, char_type* pend );

See also

streambuf::pbump Increase put pointer (protected member function)
streambuf::pbase Pointer to beginning of output sequence (protected member function)
streambuf::epptr Pointer to end of output sequence (protected member function)
streambuf::pptr Pointer to current position of output sequence (protected member function)
streambuf::setg Set input sequence pointers (protected member function)

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