operator==, !=, <, <=, >, >=(std::experimental::optional)

Header: <experimental/optional>

Performs comparison operations on optional objects.

# Declarations

Compare two optional objects
template< class T >
constexpr bool operator==( const optional<T>& lhs, const optional<T>& rhs );

(library fundamentals TS)

template< class T >
constexpr bool operator!=( const optional<T>& lhs, const optional<T>& rhs );

(library fundamentals TS)

template< class T >
constexpr bool operator<( const optional<T>& lhs, const optional<T>& rhs );

(library fundamentals TS)

template< class T >
constexpr bool operator<=( const optional<T>& lhs, const optional<T>& rhs );

(library fundamentals TS)

template< class T >
constexpr bool operator>( const optional<T>& lhs, const optional<T>& rhs );

(library fundamentals TS)

template< class T >
constexpr bool operator>=( const optional<T>& lhs, const optional<T>& rhs );

(library fundamentals TS)

Compare an optional object with a nullopt
template< class T >
constexpr bool operator==( const optional<T>& opt, std::nullopt_t ) noexcept;

(library fundamentals TS)

template< class T >
constexpr bool operator==( std::nullopt_t, const optional<T>& opt ) noexcept;

(library fundamentals TS)

template< class T >
constexpr bool operator!=( const optional<T>& opt, std::nullopt_t ) noexcept;

(library fundamentals TS)

template< class T >
constexpr bool operator!=( std::nullopt_t, const optional<T>& opt ) noexcept;

(library fundamentals TS)

template< class T >
constexpr bool operator<( const optional<T>& opt, std::nullopt_t ) noexcept;

(library fundamentals TS)

template< class T >
constexpr bool operator<( std::nullopt_t, const optional<T>& opt ) noexcept;

(library fundamentals TS)

template< class T >
constexpr bool operator<=( const optional<T>& opt, std::nullopt_t ) noexcept;

(library fundamentals TS)

template< class T >
constexpr bool operator<=( std::nullopt_t, const optional<T>& opt ) noexcept;

(library fundamentals TS)

template< class T >
constexpr bool operator>( const optional<T>& opt, std::nullopt_t ) noexcept;

(library fundamentals TS)

template< class T >
constexpr bool operator>( std::nullopt_t, const optional<T>& opt ) noexcept;

(library fundamentals TS)

template< class T >
constexpr bool operator>=( const optional<T>& opt, std::nullopt_t ) noexcept;

(library fundamentals TS)

template< class T >
constexpr bool operator>=( std::nullopt_t, const optional<T>& opt ) noexcept;

(library fundamentals TS)

Compare an optional object with a T
template< class T >
constexpr bool operator==( const optional<T>& opt, const T& value );

(library fundamentals TS)

template< class T >
constexpr bool operator==( const T& value, const optional<T>& opt );

(library fundamentals TS)

template< class T >
constexpr bool operator!=( const optional<T>& opt, const T& value );

(library fundamentals TS)

template< class T >
constexpr bool operator!=( const T& value, const optional<T>& opt );

(library fundamentals TS)

template< class T >
constexpr bool operator<( const optional<T>& opt, const T& value );

(library fundamentals TS)

template< class T >
constexpr bool operator<( const T& value, const optional<T>& opt );

(library fundamentals TS)

template< class T >
constexpr bool operator<=( const optional<T>& opt, const T& value );

(library fundamentals TS)

template< class T >
constexpr bool operator<=( const T& value, const optional<T>& opt );

(library fundamentals TS)

template< class T >
constexpr bool operator>( const optional<T>& opt, const T& value );

(library fundamentals TS)

template< class T >
constexpr bool operator>( const T& value, const optional<T>& opt );

(library fundamentals TS)

template< class T >
constexpr bool operator>=( const optional<T>& opt, const T& value );

(library fundamentals TS)

template< class T >
constexpr bool operator>=( const T& value, const optional<T>& opt );

(library fundamentals TS)

# Parameters