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").
Following is the declaration for std::basic_streambuf::pptr.
char_type* pptr() const;
It returns a pointer to the current element in the controlled output sequence.
Strong guarantee − if an exception is thrown, there are no changes in the stream buffer.
It accesses the stream buffer object.