Return whether rhs is not null.

Synopsis

Declared in <bdlb_nullablevalueref.h>

template<class TYPE>
bool
operator<(
    bsl::nullopt_t const& lhs,
    ConstNullableValueRef<TYPE> const& rhs) noexcept;

Description

Return true if the specified rhs is not null, and false otherwise. Note that bsl::nullopt is ordered before any ConstNullableValueRef that is not null.

Return Value

true if the specified rhs is not null, and false otherwise

Parameters

Name

Description

lhs

nullopt sentinel

rhs

nullable reference to test

Created with MrDocs