[#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 value of the specified `lhs` guid object is less than 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_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 the specified `lhs` compares less than 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_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 `true` if the specified `lhs` nullable wrapper is ordered before the specified `rhs` nullable object, and `false` otherwise. `lhs` is ordered before `rhs` if `lhs` is null and `rhs` is non‐null or if both are non‐null and `lhs.value()` is ordered before `rhs.value()`. 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_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 `true` if the specified `rhs` is not null, and `false` otherwise. Note that `bsl::nullopt` is ordered before any `ConstNullableValueRef` that 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&, xref:BloombergLP/bdlb/ConstNullableValueRef.adoc[ConstNullableValueRef<TYPE>] const& rhs) noexcept; ---- [.small]#xref:BloombergLP/bdlb/operator_lt-0e0.adoc[_» more..._]# Return `false`. `bsl::nullopt` never orders after a `ConstNullableValueRef`. [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&, xref:bsl/nullopt_t.adoc[bsl::nullopt_t] const&) noexcept; ---- [.small]#xref:BloombergLP/bdlb/operator_lt-054c.adoc[_» more..._]# Return `true` if the specified `lhs` is ordered before the specified `rhs` nullable wrappers, and `false` otherwise. `lhs` is ordered before `rhs` if `rhs` is not null and `lhs` is ordered before `rhs.value()`. [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 `true` if the specified `lhs` nullable wrapper is ordered before the specified `rhs`, and `false` otherwise. `lhs` is ordered before `rhs` if `lhs` is null or `lhs.value()` 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 `true` if the specified `lhs` nullable wrapper is ordered before the specified `rhs` nullable object, and `false` otherwise. `lhs` is ordered before `rhs` if `lhs` is null and `rhs` is non‐null or if both are non‐null and `lhs.value()` is ordered before `rhs.value()`. 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_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 `true` if the specified `rhs` is not null, and `false` otherwise. Note that `bsl::nullopt` is ordered before any `NullableValueRef` that 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&, xref:BloombergLP/bdlb/NullableValueRef.adoc[NullableValueRef<TYPE>] const& rhs) noexcept; ---- [.small]#xref:BloombergLP/bdlb/operator_lt-06.adoc[_» more..._]# Return `false`. `bsl::nullopt` never orders after a `NullableValueRef`. [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&, xref:bsl/nullopt_t.adoc[bsl::nullopt_t] const&) noexcept; ---- [.small]#xref:BloombergLP/bdlb/operator_lt-020.adoc[_» more..._]# Return `true` if the specified `lhs` is ordered before the specified `rhs` nullable wrappers, and `false` otherwise. `lhs` is ordered before `rhs` if `rhs` is not null and `lhs` is ordered before `rhs.value()`. [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 `true` if the specified `lhs` nullable wrapper is ordered before the specified `rhs`, and `false` otherwise. `lhs` is ordered before `rhs` if `lhs` is null or `lhs.value()` 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 `true` if the specified `lhs` nullable wrapper is ordered before the specified `rhs` nullable object, and `false` otherwise. `lhs` is ordered before `rhs` if `lhs` is null and `rhs` is non‐null or if both are non‐null and `lhs.value()` is ordered before `rhs.value()`. 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_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 `true` if the specified `lhs` nullable object is ordered before the specified `rhs` nullable object, and `false` otherwise. `lhs` is ordered before `rhs` if `lhs` is null and `rhs` is non‐null or if both are non‐null and `lhs.value()` is ordered before `rhs.value()`. 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_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..._]# If neither of the specified `lhs` and `rhs` contain a value, return `false`. 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_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..._]# If neither of the specified `lhs` and `rhs` contain a value, return `false`. 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_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&, 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&, xref:bsl/nullopt_t.adoc[bsl::nullopt_t] const&) noexcept; ---- [.small]#xref:BloombergLP/bdlb/operator_lt-015.adoc[_» more..._]# Return `true` if the specified `lhs` is ordered before the specified `rhs` nullable object, and `false` otherwise. `lhs` is ordered before `rhs` if `rhs` is not null and `lhs` is ordered before `rhs.value()`. [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 `true` if the specified `lhs` nullable object is ordered before the specified `rhs`, and `false` otherwise. `lhs` is ordered before `rhs` if `lhs` is null or `lhs.value()` is ordered before `rhs`. [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 `true` if the specified `lhs` nullable object is ordered before the specified `rhs` nullable object, and `false` otherwise. `lhs` is ordered before `rhs` if `lhs` is null and `rhs` is non‐null or if both are non‐null and `lhs.value()` is ordered before `rhs.value()`. 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_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 `true` if the specified `lhs` is ordered before the specified `rhs` nullable object, and `false` otherwise. `lhs` is ordered before `rhs` if `rhs` is not null and `lhs` is ordered before `rhs.value()`. [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 `true` if the specified `lhs` nullable object is ordered before the specified `rhs`, and `false` otherwise. `lhs` is ordered before `rhs` if `lhs` is null or `lhs.value()` is ordered before `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..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#