Reference

basic_streambuf

protected member function
<streambuf> <iostream>

std::basic_streambuf::pptr

char_type* pptr() const;
Pointer to current position of output sequence
Returns a pointer to the current element of the controlled output sequence (i.e., the "put pointer").

This is a pointer to an element of an array representing the part of the controlled output sequence that is currently buffered, and thus directly accessible by other member functions. This buffered subsequence is described by the pointers returned by the following protected member functions:

memberdescritpion
pbase() Beginning of the buffered part of the output sequence
pptr()Current position in the output sequence ("put pointer")
epptr() End of the buffered part of the output sequence

Parameters

none

Return Value

A pointer to the current element in the controlled output sequence.
Member type char_type is the type of the characters in the stream buffer (the first class template parameter).

Data races

Accesses the stream buffer object.
Concurrent access to the same stream buffer object may cause data races.

Exception safety

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

See also

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

AltStyle によって変換されたページ (->オリジナル) /