[#BloombergLP-bdlb-operator_lt-046] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::operator< :relfileprefix: ../../ :mrdocs: Less‐than operators == Synopses Declared in `<bdlb_guid.h>` Return `true` if the specified `lhs` is less than the specified `rhs`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bdlb/operator_lt-01e.adoc[operator<]( xref:BloombergLP/bdlb/Guid.adoc[Guid] const& lhs, xref:BloombergLP/bdlb/Guid.adoc[Guid] const& rhs); ---- [.small]#xref:BloombergLP/bdlb/operator_lt-01e.adoc[_» more..._]# Return `true` if the underlying iterator of `lhs` is less than `rhs`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class FUNCTOR, class ITERATOR> bool xref:BloombergLP/bdlb/operator_lt-042.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_lt-042.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_lt-0f0.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_lt-0f0.adoc[_» more..._]# Return whether `lhs` is ordered before `rhs`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_lt-0fe.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_lt-0fe.adoc[_» more..._]# Return whether `rhs` is not null. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> bool xref:BloombergLP/bdlb/operator_lt-0e0.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_lt-0e0.adoc[_» more..._]# Return `false`; nullopt never orders after a nullable reference. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> bool xref:BloombergLP/bdlb/operator_lt-054c.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_lt-054c.adoc[_» more..._]# Return whether `lhs` is ordered before `rhs`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_lt-0c.adoc[operator<]( LHS_TYPE const& lhs, xref:BloombergLP/bdlb/ConstNullableValueRef.adoc[ConstNullableValueRef<RHS_TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bdlb/operator_lt-0c.adoc[_» more..._]# Return whether `lhs` is ordered before `rhs`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_lt-0f9.adoc[operator<]( xref:BloombergLP/bdlb/ConstNullableValueRef.adoc[ConstNullableValueRef<LHS_TYPE>] const& lhs, RHS_TYPE const& rhs); ---- [.small]#xref:BloombergLP/bdlb/operator_lt-0f9.adoc[_» more..._]# Return whether `lhs` is ordered before `rhs`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_lt-033.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_lt-033.adoc[_» more..._]# Return whether `rhs` is not null. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> bool xref:BloombergLP/bdlb/operator_lt-06.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_lt-06.adoc[_» more..._]# Return `false`; nullopt never orders after a nullable reference. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> bool xref:BloombergLP/bdlb/operator_lt-020.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_lt-020.adoc[_» more..._]# Return whether `lhs` is ordered before `rhs`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_lt-0549.adoc[operator<]( LHS_TYPE const& lhs, xref:BloombergLP/bdlb/NullableValueRef.adoc[NullableValueRef<RHS_TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bdlb/operator_lt-0549.adoc[_» more..._]# Return whether `lhs` is ordered before `rhs`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_lt-02f.adoc[operator<]( xref:BloombergLP/bdlb/NullableValueRef.adoc[NullableValueRef<LHS_TYPE>] const& lhs, RHS_TYPE const& rhs); ---- [.small]#xref:BloombergLP/bdlb/operator_lt-02f.adoc[_» more..._]# Return whether `lhs` is ordered before `rhs`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_lt-037.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_lt-037.adoc[_» more..._]# Return whether the specified `lhs` is ordered before the specified `rhs`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_lt-0a1.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_lt-0a1.adoc[_» more..._]# Return whether the left‐hand operand is ordered before the right. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_lt-0b.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_lt-0b.adoc[_» more..._]# Return whether the left‐hand operand is ordered before the right. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_lt-02d.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_lt-02d.adoc[_» more..._]# 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> bool xref:BloombergLP/bdlb/operator_lt-08.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_lt-08.adoc[_» more..._]# Return `false`. Note that `bsl::nullopt` never orders after a `NullableAllocatedValue`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> bool xref:BloombergLP/bdlb/operator_lt-015.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_lt-015.adoc[_» more..._]# Return whether the left‐hand operand is ordered before the right. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_lt-0d.adoc[operator<]( LHS_TYPE const& lhs, xref:BloombergLP/bdlb/NullableAllocatedValue.adoc[NullableAllocatedValue<RHS_TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bdlb/operator_lt-0d.adoc[_» more..._]# Return whether the left‐hand operand is ordered before the right. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_lt-057.adoc[operator<]( xref:BloombergLP/bdlb/NullableAllocatedValue.adoc[NullableAllocatedValue<LHS_TYPE>] const& lhs, RHS_TYPE const& rhs); ---- [.small]#xref:BloombergLP/bdlb/operator_lt-057.adoc[_» more..._]# Return whether the left‐hand operand is ordered before the right. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_lt-094.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_lt-094.adoc[_» more..._]# Return whether the specified `lhs` is ordered before the specified `rhs`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_lt-096.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_lt-096.adoc[_» more..._]# Return whether the specified `lhs` is ordered before the specified `rhs`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_lt-00.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_lt-00.adoc[_» more..._]# Return `true` if `lhs` is ordered before `rhs`, and `false` otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_lt-0a0.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_lt-0a0.adoc[_» more..._]# Return `true` if `lhs` is ordered before `rhs`, and `false` otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_lt-0e6.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_lt-0e6.adoc[_» more..._]# Return `true` if `lhs` is ordered before `rhs`, and `false` otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_lt-032.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_lt-032.adoc[_» more..._]# Return `true` if `lhs` is ordered before `rhs`, and `false` otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> bool xref:BloombergLP/bdlb/operator_lt-07.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_lt-07.adoc[_» more..._]# == Return Value * `true` if `lhs` is less than `rhs`, and `false` otherwise * `true` if the underlying iterator of `lhs` is less than that of `rhs`, and `false` otherwise * `true` if `lhs` is ordered before `rhs`, and `false` otherwise * `true` if the specified `lhs` nullable wrapper is ordered before the specified `rhs` nullable object, and `false` otherwise * `true` if the specified `rhs` is not null, and `false` otherwise * `false`; nullopt never orders after a nullable reference * `true` if the specified `lhs` is ordered before the specified `rhs` nullable wrappers, and `false` otherwise * `true` if the specified `lhs` nullable wrapper is ordered before the specified `rhs`, and `false` otherwise * `true` if `rhs` is not null, and `false` otherwise * `false` == 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]#