Namespaces
Variants
Actions

std::istrstream::str

From cppreference.com
< cpp‎ | io‎ | istrstream
 
C++
 
Input/output library
 
std::istrstream
char* str();
(deprecated in C++98)
(removed in C++26)

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

[edit] Parameters

(none)

[edit] Return value

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


[edit] Example

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant