Namespaces
Variants
Views
Actions

std::basic_ostringstream::str

From cppreference.com
std::basic_string<CharT,Traits,Allocator> str() const;
(1)
void str(const std::basic_string<CharT,Traits,Allocator>& new_str);
(2)

Manages the contents of the underlying string object.

1) Returns a copy of the underlying string.

2) Replaces the contents of the underlying string.

[edit] Parameters

new_str - new contents of the underlying string

[edit] Return value

1) a copy of the underlying string object.

2) (none)

[edit] Example