C++ basic_streambuf Library - pptr


Advertisements

Description

It is used in pointer to current position of output sequence and returns a pointer to the current element of the controlled output sequence (i.e., the "put pointer").

Declaration

Following is the declaration for std::basic_streambuf::pptr.

char_type* pptr() const;

Parameters

none

Return Value

It returns a pointer to the current element in the controlled output sequence.

Exceptions

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

Data races

It accesses the stream buffer object.

streambuf.htm
Advertisements