value::emplace_bool

Replace with a bool value.

Synopsis

bool&
emplace_bool() noexcept;

Description

The value is replaced with a bool initialized to false, destroying the previous contents, but keeping the memeory resource.

Complexity

Linear in the size of *this.

Exception Safety

No-throw guarantee.

Return Value

this->get_bool().