[#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 specified `lhs` is less than or equal to `rhs`. [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 `lhs` is at most that of `rhs`. [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 whether `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-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& lhs, xref:BloombergLP/bdlb/ConstNullableValueRef.adoc[ConstNullableValueRef<TYPE>] const& rhs) noexcept; ---- [.small]#xref:BloombergLP/bdlb/operator_le-0a.adoc[_» more..._]# Return whether `lhs` is null. [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& rhs) noexcept; ---- [.small]#xref:BloombergLP/bdlb/operator_le-0d.adoc[_» more..._]# Return whether `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-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 whether `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-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 whether `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-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& lhs, xref:BloombergLP/bdlb/NullableValueRef.adoc[NullableValueRef<TYPE>] const& rhs) noexcept; ---- [.small]#xref:BloombergLP/bdlb/operator_le-032.adoc[_» more..._]# Return whether `lhs` is null. [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& rhs) noexcept; ---- [.small]#xref:BloombergLP/bdlb/operator_le-0ff.adoc[_» more..._]# Return whether `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-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 whether `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-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 whether `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-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 whether the specified `lhs` is ordered before or equal to `rhs`. [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..._]# Return whether the left‐hand operand is before or equal to the right. [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..._]# Return whether the left‐hand operand is before or equal to the right. [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& nullopt, xref:BloombergLP/bdlb/NullableAllocatedValue.adoc[NullableAllocatedValue<TYPE>] const& rhs) 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& nullopt) noexcept; ---- [.small]#xref:BloombergLP/bdlb/operator_le-00.adoc[_» more..._]# Return whether the left‐hand operand is before or equal to the right. [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 whether the left‐hand operand is before or equal to the right. [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 whether the left‐hand operand is before or equal to the right. [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 whether the specified `lhs` is ordered before or equal to `rhs`. [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 whether the specified `lhs` is ordered before or equal to `rhs`. [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 whether `lhs` is less than or equal to `rhs`. [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..._]# == 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 [cols="1,4"] |=== | Name| Description | *lhs* | left‐hand operand | *rhs* | right‐hand operand | *nullopt* | disengaged‐optional tag; value is unused |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#