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

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
Prev Up HomeNext

bool has_value() const noexcept

Returns true if a value is present. Constexpr where possible. Alias for explicit operator bool() const noexcept .

Requires: Always available.

Complexity: Constant time.

Guarantees: Never throws an exception.

Last revised: January 31, 2019 at 01:07:35 UTC


Prev Up HomeNext