[#BloombergLP-bdlb-operator_le-0e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::operator<= :relfileprefix: ../../ :mrdocs: Less‐than‐or‐equal operators == Synopses Declared in `<bdlb_guid.h>` Return `true` if the value of the specified `lhs` guid object is less than or equal to the value of the specified `rhs` guid object, and `false` otherwise. Note that the comparison is accomplished using a lexicographic comparison of the internal representations. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bdlb/operator_le-0f5.adoc[operator<=]( xref:BloombergLP/bdlb/Guid.adoc[Guid] const& lhs, xref:BloombergLP/bdlb/Guid.adoc[Guid] const& rhs); ---- [.small]#xref:BloombergLP/bdlb/operator_le-0f5.adoc[_» more..._]# Return `true` if the underlying iterator of the specified `lhs` compares less than or equal to the underlying iterator of the specified `rhs`, and `false` otherwise. The behavior is undefined if comparing the underlying iterators in this way is undefined. Note that the functors are not compared. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class FUNCTOR, class ITERATOR> bool xref:BloombergLP/bdlb/operator_le-0f9.adoc[operator<=]( xref:BloombergLP/bdlb/TransformIterator.adoc[TransformIterator<FUNCTOR, ITERATOR>] const& lhs, xref:BloombergLP/bdlb/TransformIterator.adoc[TransformIterator<FUNCTOR, ITERATOR>] const& rhs); ---- [.small]#xref:BloombergLP/bdlb/operator_le-0f9.adoc[_» more..._]# See the overload above for contract. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_le-07.adoc[operator<=]( xref:BloombergLP/bdlb/NullableValueRef.adoc[NullableValueRef<LHS_TYPE>] const& lhs, xref:BloombergLP/bdlb/ConstNullableValueRef.adoc[ConstNullableValueRef<RHS_TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bdlb/operator_le-07.adoc[_» more..._]# Return `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. (See `operator<` and `operator==`.) Note that this function will fail to compile if `LHS_TYPE` and `RHS_TYPE` are not compatible. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_le-0b.adoc[operator<=]( xref:BloombergLP/bdlb/ConstNullableValueRef.adoc[ConstNullableValueRef<LHS_TYPE>] const& lhs, xref:BloombergLP/bdlb/NullableValueRef.adoc[NullableValueRef<RHS_TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bdlb/operator_le-0b.adoc[_» more..._]# Return `true`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> bool xref:BloombergLP/bdlb/operator_le-0a.adoc[operator<=]( xref:bsl/nullopt_t.adoc[bsl::nullopt_t] const&, xref:BloombergLP/bdlb/ConstNullableValueRef.adoc[ConstNullableValueRef<TYPE>] const&) noexcept; ---- [.small]#xref:BloombergLP/bdlb/operator_le-0a.adoc[_» more..._]# Return `true` if the specified `lhs` is null, and `false` otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> bool xref:BloombergLP/bdlb/operator_le-0d.adoc[operator<=]( xref:BloombergLP/bdlb/ConstNullableValueRef.adoc[ConstNullableValueRef<TYPE>] const& lhs, xref:bsl/nullopt_t.adoc[bsl::nullopt_t] const&) noexcept; ---- [.small]#xref:BloombergLP/bdlb/operator_le-0d.adoc[_» more..._]# Return `true` if the specified `lhs` is ordered before the specified `rhs` nullable wrapper or `lhs` and `rhs` have the same value, and `false` otherwise. (See `operator<` and `operator==`.) Note that this operator returns `!(rhs < lhs)`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_le-01.adoc[operator<=]( LHS_TYPE const& lhs, xref:BloombergLP/bdlb/ConstNullableValueRef.adoc[ConstNullableValueRef<RHS_TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bdlb/operator_le-01.adoc[_» more..._]# Return `true` if the specified `lhs` nullable wrapper is ordered before the specified `rhs` or `lhs` and `rhs` have the same value, and `false` otherwise. (See `operator<` and `operator==`.) Note that this operator returns `!(rhs < lhs)`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_le-0f6.adoc[operator<=]( xref:BloombergLP/bdlb/ConstNullableValueRef.adoc[ConstNullableValueRef<LHS_TYPE>] const& lhs, RHS_TYPE const& rhs); ---- [.small]#xref:BloombergLP/bdlb/operator_le-0f6.adoc[_» more..._]# Return `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. (See `operator<` and `operator==`.) Note that this function will fail to compile if `LHS_TYPE` and `RHS_TYPE` are not compatible. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_le-054.adoc[operator<=]( xref:BloombergLP/bdlb/ConstNullableValueRef.adoc[ConstNullableValueRef<LHS_TYPE>] const& lhs, xref:BloombergLP/bdlb/ConstNullableValueRef.adoc[ConstNullableValueRef<RHS_TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bdlb/operator_le-054.adoc[_» more..._]# Return `true`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> bool xref:BloombergLP/bdlb/operator_le-032.adoc[operator<=]( xref:bsl/nullopt_t.adoc[bsl::nullopt_t] const&, xref:BloombergLP/bdlb/NullableValueRef.adoc[NullableValueRef<TYPE>] const&) noexcept; ---- [.small]#xref:BloombergLP/bdlb/operator_le-032.adoc[_» more..._]# Return `true` if the specified `lhs` is null, and `false` otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> bool xref:BloombergLP/bdlb/operator_le-0ff.adoc[operator<=]( xref:BloombergLP/bdlb/NullableValueRef.adoc[NullableValueRef<TYPE>] const& lhs, xref:bsl/nullopt_t.adoc[bsl::nullopt_t] const&) noexcept; ---- [.small]#xref:BloombergLP/bdlb/operator_le-0ff.adoc[_» more..._]# Return `true` if the specified `lhs` is ordered before the specified `rhs` nullable wrapper or `lhs` and `rhs` have the same value, and `false` otherwise. (See `operator<` and `operator==`.) Note that this operator returns `!(rhs < lhs)`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_le-0c9.adoc[operator<=]( LHS_TYPE const& lhs, xref:BloombergLP/bdlb/NullableValueRef.adoc[NullableValueRef<RHS_TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bdlb/operator_le-0c9.adoc[_» more..._]# Return `true` if the specified `lhs` nullable wrapper is ordered before the specified `rhs` or `lhs` and `rhs` have the same value, and `false` otherwise. (See `operator<` and `operator==`.) Note that this operator returns `!(rhs < lhs)`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_le-03f.adoc[operator<=]( xref:BloombergLP/bdlb/NullableValueRef.adoc[NullableValueRef<LHS_TYPE>] const& lhs, RHS_TYPE const& rhs); ---- [.small]#xref:BloombergLP/bdlb/operator_le-03f.adoc[_» more..._]# Return `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. (See `operator<` and `operator==`.) Note that this function will fail to compile if `LHS_TYPE` and `RHS_TYPE` are not compatible. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_le-0fd.adoc[operator<=]( xref:BloombergLP/bdlb/NullableValueRef.adoc[NullableValueRef<LHS_TYPE>] const& lhs, xref:BloombergLP/bdlb/NullableValueRef.adoc[NullableValueRef<RHS_TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bdlb/operator_le-0fd.adoc[_» more..._]# Return `true` if the specified `lhs` nullable object is ordered before the specified `rhs` nullable object or `lhs` and `rhs` have the same value, and `false` otherwise. (See `operator<` and `operator==`.) Note that this operator returns `*lhs <= *rhs` when both operands are of `NullableValue` type and have a value. Also note that this function will fail to compile if `LHS_TYPE` and `RHS_TYPE` are not compatible. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_le-08e.adoc[operator<=]( xref:BloombergLP/bdlb/NullableValue.adoc[NullableValue<LHS_TYPE>] const& lhs, xref:BloombergLP/bdlb/NullableValue.adoc[NullableValue<RHS_TYPE>] const& rhs) requires requires { { *lhs <= *rhs } ‐> NullableValue_ConvertibleToBool; }; ---- [.small]#xref:BloombergLP/bdlb/operator_le-08e.adoc[_» more..._]# If neither of the specified `lhs` and `rhs` contain a value, return `true`. 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()`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_le-041.adoc[operator<=]( xref:bsl/optional-072.adoc[bsl::optional<LHS_TYPE>] const& lhs, xref:BloombergLP/bdlb/NullableAllocatedValue.adoc[NullableAllocatedValue<RHS_TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bdlb/operator_le-041.adoc[_» more..._]# If neither of the specified `lhs` and `rhs` contain a value, return `true`. 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()`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_le-08f.adoc[operator<=]( xref:BloombergLP/bdlb/NullableAllocatedValue.adoc[NullableAllocatedValue<LHS_TYPE>] const& lhs, xref:bsl/optional-072.adoc[bsl::optional<RHS_TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bdlb/operator_le-08f.adoc[_» more..._]# Return `true`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> bool xref:BloombergLP/bdlb/operator_le-02a.adoc[operator<=]( xref:bsl/nullopt_t.adoc[bsl::nullopt_t] const&, xref:BloombergLP/bdlb/NullableAllocatedValue.adoc[NullableAllocatedValue<TYPE>] const&) noexcept; ---- [.small]#xref:BloombergLP/bdlb/operator_le-02a.adoc[_» more..._]# Return `true` if the specified `lhs` is null, and `false` otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> bool xref:BloombergLP/bdlb/operator_le-00.adoc[operator<=]( xref:BloombergLP/bdlb/NullableAllocatedValue.adoc[NullableAllocatedValue<TYPE>] const& lhs, xref:bsl/nullopt_t.adoc[bsl::nullopt_t] const&) noexcept; ---- [.small]#xref:BloombergLP/bdlb/operator_le-00.adoc[_» more..._]# Return `true` if the specified `lhs` is ordered before the specified `rhs` nullable object or `lhs` and `rhs` have the same value, and `false` otherwise. (See `operator<` and `operator==`.) Note that this operator returns `!(rhs < lhs)`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_le-05c.adoc[operator<=]( LHS_TYPE const& lhs, xref:BloombergLP/bdlb/NullableAllocatedValue.adoc[NullableAllocatedValue<RHS_TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bdlb/operator_le-05c.adoc[_» more..._]# Return `true` if the specified `lhs` nullable object is ordered before the specified `rhs` or `lhs` and `rhs` have the same value, and `false` otherwise. (See `operator<` and `operator==`.) Note that this operator returns `!(rhs < lhs)`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_le-0c1.adoc[operator<=]( xref:BloombergLP/bdlb/NullableAllocatedValue.adoc[NullableAllocatedValue<LHS_TYPE>] const& lhs, RHS_TYPE const& rhs); ---- [.small]#xref:BloombergLP/bdlb/operator_le-0c1.adoc[_» more..._]# Return `true` if the specified `lhs` nullable object is ordered before the specified `rhs` nullable object or `lhs` and `rhs` have the same value, and `false` otherwise. (See `operator<` and `operator==`.) Note that this operator returns `!(rhs < lhs)` when both operands are of `NullableValue` type. Also note that this function will fail to compile if `LHS_TYPE` and `RHS_TYPE` are not compatible. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_le-081.adoc[operator<=]( xref:BloombergLP/bdlb/NullableAllocatedValue.adoc[NullableAllocatedValue<LHS_TYPE>] const& lhs, xref:BloombergLP/bdlb/NullableAllocatedValue.adoc[NullableAllocatedValue<RHS_TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bdlb/operator_le-081.adoc[_» more..._]# Return `true` if the specified `lhs` is ordered before the specified `rhs` nullable object or `lhs` and `rhs` have the same value, and `false` otherwise. (See `operator<` and `operator==`.) [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_le-06f.adoc[operator<=]( LHS_TYPE const& lhs, xref:BloombergLP/bdlb/NullableValue.adoc[NullableValue<RHS_TYPE>] const& rhs) requires (!NullableValue_DerivedFromOptional<LHS_TYPE>) && requires { { lhs <= *rhs } ‐> NullableValue_ConvertibleToBool; }; ---- [.small]#xref:BloombergLP/bdlb/operator_le-06f.adoc[_» more..._]# Return `true` if the specified `lhs` nullable object is ordered before the specified `rhs` or `lhs` and `rhs` have the same value, and `false` otherwise. (See `operator<` and `operator==`.) [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_le-023.adoc[operator<=]( xref:BloombergLP/bdlb/NullableValue.adoc[NullableValue<LHS_TYPE>] const& lhs, RHS_TYPE const& rhs) requires (!NullableValue_DerivedFromOptional<RHS_TYPE>) && requires { { *lhs <= rhs } ‐> NullableValue_ConvertibleToBool; }; ---- [.small]#xref:BloombergLP/bdlb/operator_le-023.adoc[_» more..._]# Return `true` if `lhs` is ordered before `rhs` or they are equal. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_le-086.adoc[operator<=]( xref:BloombergLP/bdlb/NullableValue.adoc[NullableValue<LHS_TYPE>] const& lhs, std::optional<RHS_TYPE> const& rhs) requires requires { { *lhs <= *rhs } ‐> NullableValue_ConvertibleToBool; }; ---- [.small]#xref:BloombergLP/bdlb/operator_le-086.adoc[_» more..._]# Return `true` if `lhs` is ordered before `rhs` or they are equal. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_le-065.adoc[operator<=]( std::optional<LHS_TYPE> const& lhs, xref:BloombergLP/bdlb/NullableValue.adoc[NullableValue<RHS_TYPE>] const& rhs) requires requires { { *lhs <= *rhs } ‐> NullableValue_ConvertibleToBool; }; ---- [.small]#xref:BloombergLP/bdlb/operator_le-065.adoc[_» more..._]# Return `true` if `lhs` is ordered before `rhs` or they are equal. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_le-047.adoc[operator<=]( xref:BloombergLP/bdlb/NullableValue.adoc[NullableValue<LHS_TYPE>] const& lhs, xref:bsl/optional-072.adoc[bsl::optional<RHS_TYPE>] const& rhs) requires requires { { *lhs <= *rhs } ‐> NullableValue_ConvertibleToBool; }; ---- [.small]#xref:BloombergLP/bdlb/operator_le-047.adoc[_» more..._]# Return `true` if `lhs` is ordered before `rhs` or they are equal. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_le-06b.adoc[operator<=]( xref:bsl/optional-072.adoc[bsl::optional<LHS_TYPE>] const& lhs, xref:BloombergLP/bdlb/NullableValue.adoc[NullableValue<RHS_TYPE>] const& rhs) requires requires { { *lhs <= *rhs } ‐> NullableValue_ConvertibleToBool; }; ---- [.small]#xref:BloombergLP/bdlb/operator_le-06b.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#