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<std::decay_t<T>> make_optional( T && v )

space

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

space

optional<std::decay_t<T>> make_optional( bool condition, T && 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

auto get_pointer ( optional<T>& o ) -> typename optional<T>::pointer_type ;

auto get_pointer ( optional<T> const& o ) -> typename optional<T>::pointer_const_type ;

space

auto get_optional_value_or ( optional<T>& o, typename optional<T>::reference_type def ) -> typename optional<T>::reference_type ;

auto get_optional_value_or ( optional<T> const& o, typename optional<T>::reference_const_type def ) -> typename optional<T>::reference_const_type ;

space

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

space

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


PrevUpHomeNext