Less‐than operators
Synopses
Declared in <bdlb_guid.h>
Return true if the specified lhs is less than the specified rhs.
Return true if the underlying iterator of lhs is less than rhs.
template<
class FUNCTOR,
class ITERATOR>
bool
operator<(
TransformIterator<FUNCTOR, ITERATOR> const& lhs,
TransformIterator<FUNCTOR, ITERATOR> const& rhs);
See the overload above for contract.
template<
class LHS_TYPE,
class RHS_TYPE>
bool
operator<(
NullableValueRef<LHS_TYPE> const& lhs,
ConstNullableValueRef<RHS_TYPE> const& rhs);
Return whether lhs is ordered before rhs.
template<
class LHS_TYPE,
class RHS_TYPE>
bool
operator<(
ConstNullableValueRef<LHS_TYPE> const& lhs,
NullableValueRef<RHS_TYPE> const& rhs);
Return whether rhs is not null.
template<class TYPE>
bool
operator<(
bsl::nullopt_t const& lhs,
ConstNullableValueRef<TYPE> const& rhs) noexcept;
Return false; nullopt never orders after a nullable reference.
template<class TYPE>
bool
operator<(
ConstNullableValueRef<TYPE> const& lhs,
bsl::nullopt_t const& rhs) noexcept;
Return whether lhs is ordered before rhs.
template<
class LHS_TYPE,
class RHS_TYPE>
bool
operator<(
LHS_TYPE const& lhs,
ConstNullableValueRef<RHS_TYPE> const& rhs);
Return whether lhs is ordered before rhs.
template<
class LHS_TYPE,
class RHS_TYPE>
bool
operator<(
ConstNullableValueRef<LHS_TYPE> const& lhs,
RHS_TYPE const& rhs);
Return whether lhs is ordered before rhs.
template<
class LHS_TYPE,
class RHS_TYPE>
bool
operator<(
ConstNullableValueRef<LHS_TYPE> const& lhs,
ConstNullableValueRef<RHS_TYPE> const& rhs);
Return whether rhs is not null.
template<class TYPE>
bool
operator<(
bsl::nullopt_t const& lhs,
NullableValueRef<TYPE> const& rhs) noexcept;
Return false; nullopt never orders after a nullable reference.
template<class TYPE>
bool
operator<(
NullableValueRef<TYPE> const& lhs,
bsl::nullopt_t const& rhs) noexcept;
Return whether lhs is ordered before rhs.
template<
class LHS_TYPE,
class RHS_TYPE>
bool
operator<(
LHS_TYPE const& lhs,
NullableValueRef<RHS_TYPE> const& rhs);
Return whether lhs is ordered before rhs.
template<
class LHS_TYPE,
class RHS_TYPE>
bool
operator<(
NullableValueRef<LHS_TYPE> const& lhs,
RHS_TYPE const& rhs);
Return whether lhs is ordered before rhs.
template<
class LHS_TYPE,
class RHS_TYPE>
bool
operator<(
NullableValueRef<LHS_TYPE> const& lhs,
NullableValueRef<RHS_TYPE> const& rhs);
Return whether the specified lhs is ordered before the specified rhs.
template<
class LHS_TYPE,
class RHS_TYPE>
bool
operator<(
NullableValue<LHS_TYPE> const& lhs,
NullableValue<RHS_TYPE> const& rhs)
requires requires {
{ *lhs < *rhs } ‐> NullableValue_ConvertibleToBool;
};
Return whether the left‐hand operand is ordered before the right.
template<
class LHS_TYPE,
class RHS_TYPE>
bool
operator<(
bsl::optional<LHS_TYPE> const& lhs,
NullableAllocatedValue<RHS_TYPE> const& rhs);
Return whether the left‐hand operand is ordered before the right.
template<
class LHS_TYPE,
class RHS_TYPE>
bool
operator<(
NullableAllocatedValue<LHS_TYPE> const& lhs,
bsl::optional<RHS_TYPE> const& rhs);
Return true if the specified rhs is not null, and false otherwise. Note that bsl::nullopt is ordered before any NullableAllocatedValue that is not null.
template<class TYPE>
bool
operator<(
bsl::nullopt_t const& nullopt,
NullableAllocatedValue<TYPE> const& rhs) noexcept;
Return false. Note that bsl::nullopt never orders after a NullableAllocatedValue.
template<class TYPE>
bool
operator<(
NullableAllocatedValue<TYPE> const& lhs,
bsl::nullopt_t const& nullopt) noexcept;
Return whether the left‐hand operand is ordered before the right.
template<
class LHS_TYPE,
class RHS_TYPE>
bool
operator<(
LHS_TYPE const& lhs,
NullableAllocatedValue<RHS_TYPE> const& rhs);
Return whether the left‐hand operand is ordered before the right.
template<
class LHS_TYPE,
class RHS_TYPE>
bool
operator<(
NullableAllocatedValue<LHS_TYPE> const& lhs,
RHS_TYPE const& rhs);
Return whether the left‐hand operand is ordered before the right.
template<
class LHS_TYPE,
class RHS_TYPE>
bool
operator<(
NullableAllocatedValue<LHS_TYPE> const& lhs,
NullableAllocatedValue<RHS_TYPE> const& rhs);
Return whether the specified lhs is ordered before the specified rhs.
template<
class LHS_TYPE,
class RHS_TYPE>
bool
operator<(
LHS_TYPE const& lhs,
NullableValue<RHS_TYPE> const& rhs)
requires (!NullableValue_DerivedFromOptional<LHS_TYPE>) &&
requires { { lhs < *rhs } ‐> NullableValue_ConvertibleToBool; };
Return whether the specified lhs is ordered before the specified rhs.
template<
class LHS_TYPE,
class RHS_TYPE>
bool
operator<(
NullableValue<LHS_TYPE> const& lhs,
RHS_TYPE const& rhs)
requires (!NullableValue_DerivedFromOptional<RHS_TYPE>) &&
requires { { *lhs < rhs } ‐> NullableValue_ConvertibleToBool; };
Return true if lhs is ordered before rhs, and false otherwise.
template<
class LHS_TYPE,
class RHS_TYPE>
bool
operator<(
NullableValue<LHS_TYPE> const& lhs,
std::optional<RHS_TYPE> const& rhs)
requires requires {
{ *lhs < *rhs } ‐> NullableValue_ConvertibleToBool;
};
Return true if lhs is ordered before rhs, and false otherwise.
template<
class LHS_TYPE,
class RHS_TYPE>
bool
operator<(
std::optional<LHS_TYPE> const& lhs,
NullableValue<RHS_TYPE> const& rhs)
requires requires {
{ *lhs < *rhs } ‐> NullableValue_ConvertibleToBool;
};
Return true if lhs is ordered before rhs, and false otherwise.
template<
class LHS_TYPE,
class RHS_TYPE>
bool
operator<(
NullableValue<LHS_TYPE> const& lhs,
bsl::optional<RHS_TYPE> const& rhs)
requires requires {
{ *lhs < *rhs } ‐> NullableValue_ConvertibleToBool;
};
Return true if lhs is ordered before rhs, and false otherwise.
template<
class LHS_TYPE,
class RHS_TYPE>
bool
operator<(
bsl::optional<LHS_TYPE> const& lhs,
NullableValue<RHS_TYPE> const& rhs)
requires requires {
{ *lhs < *rhs } ‐> NullableValue_ConvertibleToBool;
};
Return Value
-
trueiflhsis less thanrhs, andfalseotherwise -
trueif the underlying iterator oflhsis less than that ofrhs, andfalseotherwise -
trueiflhsis ordered beforerhs, andfalseotherwise -
trueif the specifiedlhsnullable wrapper is ordered before the specifiedrhsnullable object, andfalseotherwise -
trueif the specifiedrhsis not null, andfalseotherwise -
false; nullopt never orders after a nullable reference -
trueif the specifiedlhsis ordered before the specifiedrhsnullable wrappers, andfalseotherwise -
trueif the specifiedlhsnullable wrapper is ordered before the specifiedrhs, andfalseotherwise -
trueifrhsis not null, andfalseotherwise -
false
Parameters
Name |
Description |
lhs |
left‐hand operand |
rhs |
right‐hand operand |
nullopt |
disengaged‐optional tag; value is unused |
Created with MrDocs