Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

value::emplace_string

value::emplace_string

Replace with an empty string.

Synopsis

string&
emplace_string() noexcept;

Description

The value is replaced with an empty string using the current memory resource, destroying the previous contents. All previously obtained iterators and references obtained beforehand are invalidated.

Complexity

Linear in the size of *this.

Exception Safety

No-throw guarantee.

Return Value

this->get_string().