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

Header <boost/optional/optional.hpp>

// In Header: <boost/optional/optional.hpp>

namespace boost {

template <class T>
class optional ; R

template <class T>
class optional<T&> ; R

template<class T> inline bool operator == ( optional<T> const& x, optional<T> const& y ) ; R

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

template<class T> inline bool operator <  ( optional<T> const& x, optional<T> const& y ) ; R

template<class T> inline bool operator >  ( optional<T> const& x, optional<T> const& y ) ; R

template<class T> inline bool operator <= ( optional<T> const& x, optional<T> const& y ) ; R

template<class T> inline bool operator >= ( optional<T> const& x, optional<T> const& y ) ; R

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

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

template<class T> inline optional<T> make_optional ( T const& v ) ; R

template<class T> inline optional<T> make_optional ( bool condition, T const& v ) ; R

template<class T> inline auto get_optional_value_or ( optional<T> const& opt, typename optional<T>::reference_const_type def ) -> typename optional<T>::reference_const_type; R

template<class T> inline auto get_optional_value_or ( optional<T> const& opt, typename optional<T>::reference_type def ) -> typename optional<T>::reference_type ; R

template<class T> inline T const& get ( optional<T> const& opt ) ; R

template<class T> inline T& get ( optional<T> & opt ) ; R

template<class T> inline T const* get ( optional<T> const* opt ) ; R

template<class T> inline T* get ( optional<T>* opt ) ; R

template<class T> inline auto get_pointer ( optional<T> const& opt ) -> see below; R

template<class T> inline auto get_pointer ( optional<T> & opt ) -> see below; R

template<class T> inline void swap( optional<T>& x, optional<T>& y ) ; R

template<class T> inline void swap( optional<T&>& x, optional<T&>& y ) ; R

} // namespace boost

PrevUpHomeNext