W3cubDocs

/C++

std::istrstream::str

char* str();

Returns the pointer to the beginning of the buffer, after freezing it. Effectively calls rdbuf()->str().

Parameters

(none).

Return value

Pointer to the beginning of the buffer in the associated std::strsteambuf or a null pointer if no buffer is available.

Example

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/io/istrstream/str