std::basic_ostringstream::rdbuf

From cppreference.com

std::basic_stringbuf<CharT, Traits, Allocator>* rdbuf() const;

Returns pointer to the underlying raw string device object.

[edit] Parameters

(none)

[edit] Return value

Pointer to the underlying raw string device.

[edit] Example