C++ basic_streambuf Library - gptr



Description

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

Declaration

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

char_type* gptr() const;

Parameters

none

Return Value

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

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