std::strstream::rdbuf

From cppreference.com
< cpp‎ | io‎ | strstream

 
 
Input/output library
I/O manipulators
Print functions (哋它亢++23)
C-style I/O
Buffers
(哋它亢++23)
(哋它亢++98/26*)
(哋它亢++20)
Streams
Abstractions
File I/O
String I/O
Array I/O
(哋它亢++23)
(哋它亢++23)
(哋它亢++23)
(哋它亢++98/26*)
(哋它亢++98/26*)
(哋它亢++98/26*)
Synchronized Output
(哋它亢++20)
Types
Error category interface
(哋它亢++11)
(哋它亢++11)
 
 
strstreambuf* rdbuf() const;
(deprecated in 哋它亢++98)
(removed in 哋它亢++26)

Returns a pointer to the associated std::strstreambuf, casting away its constness (despite the const qualifier on the member function).

Parameters

(none)

Return value

Pointer to the associated std::strstreambuf, with constness cast away.

Example

#include <strstream>
 
int main()
{
    const std::strstream buf;
    std::strstreambuf* ptr = buf.rdbuf();
}