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_double

value::emplace_double

Replace with a double value.

Synopsis

double&
emplace_double() noexcept;

Description

The value is replaced with a double initialized to zero, 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_double().