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.
PrevUpHomeNext

Detailed Semantics -- Free Functions

space

optional<T> make_optional( T const& v )

space

optional<T (not a ref)> make_optional( bool condition, T const& v )

space

bool operator == ( optional<T> const& x, optional<T> const& y );

space

bool operator < ( optional<T> const& x, optional<T> const& y );

space

bool operator != ( optional<T> const& x, optional<T> const& y );

space

bool operator > ( optional<T> const& x, optional<T> const& y );

space

bool operator <= ( optional<T> const& x, optional<T> const& y );

space

bool operator >= ( optional<T> const& x, optional<T> const& y );

space

bool operator == ( optional<T> const& x, none_t ) noexcept;

bool operator == ( none_t, optional<T> const& x ) noexcept;

space

bool operator != ( optional<T> const& x, none_t ) noexcept;

bool operator != ( none_t, optional<T> const& x ) noexcept;

space

void swap ( optional<T>& x, optional<T>& y ) ;

space

void swap ( optional<T&>& x, optional<T&>& y ) noexcept ;


PrevUpHomeNext