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