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().