BloombergLP::bdlb::operator<=

Less-than-or-equal operators

Synopses

Declared in <bdlb_guid.h>

Return true if the specified lhs is less than or equal to rhs.

bool
operator<=(
    Guid const& lhs,
    Guid const& rhs);
» more...

Return true if the underlying iterator of lhs is at most that of rhs.

template<
    class FUNCTOR,
    class ITERATOR>
bool
operator<=(
    TransformIterator<FUNCTOR, ITERATOR> const& lhs,
    TransformIterator<FUNCTOR, ITERATOR> const& rhs);
» more...

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);
» more...

Return whether lhs is ordered before rhs or they are equal.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator<=(
    ConstNullableValueRef<LHS_TYPE> const& lhs,
    NullableValueRef<RHS_TYPE> const& rhs);
» more...

Return true.

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

Return whether lhs is null.

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

Return whether lhs is ordered before rhs or they are equal.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator<=(
    LHS_TYPE const& lhs,
    ConstNullableValueRef<RHS_TYPE> const& rhs);
» more...

Return whether lhs is ordered before rhs or they are equal.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator<=(
    ConstNullableValueRef<LHS_TYPE> const& lhs,
    RHS_TYPE const& rhs);
» more...

Return whether lhs is ordered before rhs or they are equal.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator<=(
    ConstNullableValueRef<LHS_TYPE> const& lhs,
    ConstNullableValueRef<RHS_TYPE> const& rhs);
» more...

Return true.

template<class TYPE>
bool
operator<=(
    bsl::nullopt_t const& lhs,
    NullableValueRef<TYPE> const& rhs) noexcept;
» more...

Return whether lhs is null.

template<class TYPE>
bool
operator<=(
    NullableValueRef<TYPE> const& lhs,
    bsl::nullopt_t const& rhs) noexcept;
» more...

Return whether lhs is ordered before rhs or they are equal.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator<=(
    LHS_TYPE const& lhs,
    NullableValueRef<RHS_TYPE> const& rhs);
» more...

Return whether lhs is ordered before rhs or they are equal.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator<=(
    NullableValueRef<LHS_TYPE> const& lhs,
    RHS_TYPE const& rhs);
» more...

Return whether lhs is ordered before rhs or they are equal.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator<=(
    NullableValueRef<LHS_TYPE> const& lhs,
    NullableValueRef<RHS_TYPE> const& rhs);
» more...

Return whether the specified lhs is ordered before or equal to 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;
    };
» more...

Return whether the left-hand operand is before or equal to the right.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator<=(
    bsl::optional<LHS_TYPE> const& lhs,
    NullableAllocatedValue<RHS_TYPE> const& rhs);
» more...

Return whether the left-hand operand is before or equal to the right.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator<=(
    NullableAllocatedValue<LHS_TYPE> const& lhs,
    bsl::optional<RHS_TYPE> const& rhs);
» more...

Return true.

template<class TYPE>
bool
operator<=(
    bsl::nullopt_t const& nullopt,
    NullableAllocatedValue<TYPE> const& rhs) noexcept;
» more...

Return true if the specified lhs is null, and false otherwise.

template<class TYPE>
bool
operator<=(
    NullableAllocatedValue<TYPE> const& lhs,
    bsl::nullopt_t const& nullopt) noexcept;
» more...

Return whether the left-hand operand is before or equal to the right.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator<=(
    LHS_TYPE const& lhs,
    NullableAllocatedValue<RHS_TYPE> const& rhs);
» more...

Return whether the left-hand operand is before or equal to the right.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator<=(
    NullableAllocatedValue<LHS_TYPE> const& lhs,
    RHS_TYPE const& rhs);
» more...

Return whether the left-hand operand is before or equal to the right.

template<
    class LHS_TYPE,
    class RHS_TYPE>
bool
operator<=(
    NullableAllocatedValue<LHS_TYPE> const& lhs,
    NullableAllocatedValue<RHS_TYPE> const& rhs);
» more...

Return whether the specified lhs is ordered before or equal to 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; };
» more...

Return whether the specified lhs is ordered before or equal to 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; };
» more...

Return true if lhs is ordered before rhs or they are equal.

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;
    };
» more...

Return whether lhs is less than or equal to rhs.

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;
    };
» more...

Return true if lhs is ordered before rhs or they are equal.

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;
    };
» more...

Return true if lhs is ordered before rhs or they are equal.

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;
    };
» more...

Return Value

  • true if lhs is less than or equal to rhs, and false otherwise
  • true if the underlying iterator of lhs is less than or equal to that of rhs, and false otherwise
  • true if lhs is ordered before rhs or they have the same value, and false otherwise
  • true if the specified lhs nullable wrapper is ordered before the specified rhs nullable object or lhs and rhs have the same value, and false otherwise
  • true
  • true if the specified lhs is null, and false otherwise
  • true if the specified lhs is ordered before the specified rhs nullable wrapper or lhs and rhs have the same value, and false otherwise
  • true if the specified lhs nullable wrapper is ordered before the specified rhs or lhs and rhs have the same value, and false otherwise
  • true if lhs is ordered before rhs or they are equal, and false otherwise
  • true if lhs is ordered before or equal to rhs, and false otherwise
  • true if lhs is null, and false otherwise
  • true if lhs is ordered before rhs or they are equal

Parameters

NameDescription
lhsleft-hand operand
rhsright-hand operand
nulloptdisengaged-optional tag; value is unused