Return whether the left-hand operand is ordered before the right.
Declared in <bdlb_nullableallocatedvalue.h>
template<
class LHS_TYPE,
class RHS_TYPE>
bool
operator<(
bsl::optional<LHS_TYPE> const& lhs,
NullableAllocatedValue<RHS_TYPE> const& rhs);
If neither of the specified lhs and rhs contain a value, return false. If lhs contains a value, and rhs does not, return false. If lhs does not contains a value, rhs does, return true. Otherwise, return lhs.value < rhs.value().
true if lhs is ordered before rhs, and false otherwise
| Name | Description |
|---|---|
| lhs | left-hand operand |
| rhs | right-hand operand |