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_array

value::emplace_array

Replace with an empty array.

Synopsis

array&
emplace_array() noexcept;

Description

The value is replaced with an empty array 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_array().