[#BloombergLP-bsltf-operator_eq-049] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsltf.adoc[bsltf]::operator== :relfileprefix: ../../ :mrdocs: Equality operators == Synopses Declared in `<bsltf_allocbitwisemoveabletesttype.h>` Return `true` if the specified iterator and sentinel refer to the same element, and `false` otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bsltf/operator_eq-0849.adoc[operator==]( xref:BloombergLP/bsltf/TestValuesArrayIterator.adoc[TestValuesArrayIterator<OTHER_VALUE>] const& lhs, xref:BloombergLP/bsltf/TestValuesArraySentinel.adoc[TestValuesArraySentinel<OTHER_VALUE>] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-0849.adoc[_» more..._]# Return whether two objects have the same value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bsltf/operator_eq-037.adoc[operator==]( xref:BloombergLP/bsltf/SimpleTestType.adoc[SimpleTestType] const& lhs, xref:BloombergLP/bsltf/SimpleTestType.adoc[SimpleTestType] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-037.adoc[_» more..._]# Return whether two objects have the same value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ALLOC> bool xref:BloombergLP/bsltf/operator_eq-03e7.adoc[operator==]( xref:BloombergLP/bsltf/StdAllocTestType.adoc[StdAllocTestType<ALLOC>] const& lhs, xref:BloombergLP/bsltf/StdAllocTestType.adoc[StdAllocTestType<ALLOC>] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-03e7.adoc[_» more..._]# Return `true` if the specified `lhs` and `rhs` unions have the same value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bsltf/operator_eq-072.adoc[operator==]( xref:BloombergLP/bsltf/UnionTestType.adoc[UnionTestType] const& lhs, xref:BloombergLP/bsltf/UnionTestType.adoc[UnionTestType] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-072.adoc[_» more..._]# Return `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bsltf/operator_eq-0b99.adoc[operator==]( xref:BloombergLP/bsltf/WellBehavedMoveOnlyAllocTestType.adoc[WellBehavedMoveOnlyAllocTestType] const& lhs, xref:BloombergLP/bsltf/WellBehavedMoveOnlyAllocTestType.adoc[WellBehavedMoveOnlyAllocTestType] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-0b99.adoc[_» more..._]# Return whether the specified iterators refer to the same position. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bsltf/operator_eq-05b.adoc[operator==]( xref:BloombergLP/bsltf/InputIterator.adoc[InputIterator<TYPE2>] const& lhs, xref:BloombergLP/bsltf/InputIterator.adoc[InputIterator<TYPE2>] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-05b.adoc[_» more..._]# Return whether two input iterators refer to the same position. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> bool xref:BloombergLP/bsltf/operator_eq-0cb.adoc[operator==]( xref:BloombergLP/bsltf/InputIterator.adoc[InputIterator<TYPE>] const& lhs, xref:BloombergLP/bsltf/InputIterator.adoc[InputIterator<TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-0cb.adoc[_» more..._]# Return whether two allocator adaptors compare equal. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class TYPE1, class TYPE2> bool xref:BloombergLP/bsltf/operator_eq-099.adoc[operator==]( xref:BloombergLP/bsltf/StdAllocatorAdaptor.adoc[StdAllocatorAdaptor<TYPE1>] const& lhs, xref:BloombergLP/bsltf/StdAllocatorAdaptor.adoc[StdAllocatorAdaptor<TYPE2>] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-099.adoc[_» more..._]# Return `true` if the specified sentinel and iterator refer to the same element, and `false` otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bsltf/operator_eq-0f3.adoc[operator==]( xref:BloombergLP/bsltf/TestValuesArraySentinel.adoc[TestValuesArraySentinel<OTHER_VALUE>] const& lhs, xref:BloombergLP/bsltf/TestValuesArrayIterator.adoc[TestValuesArrayIterator<OTHER_VALUE>] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-0f3.adoc[_» more..._]# Return whether two objects have the same value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bsltf/operator_eq-09a.adoc[operator==]( xref:BloombergLP/bsltf/NonTypicalOverloadsTestType.adoc[NonTypicalOverloadsTestType] const& lhs, xref:BloombergLP/bsltf/NonTypicalOverloadsTestType.adoc[NonTypicalOverloadsTestType] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-09a.adoc[_» more..._]# Return `true` if the specified iterators refer to the same element, and `false` otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bsltf/operator_eq-0a5.adoc[operator==]( xref:BloombergLP/bsltf/TestValuesArrayIterator.adoc[TestValuesArrayIterator<OTHER_VALUE>] const& lhs, xref:BloombergLP/bsltf/TestValuesArrayIterator.adoc[TestValuesArrayIterator<OTHER_VALUE>] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-0a5.adoc[_» more..._]# Return `true` if `lhs` and `rhs` refer to the same element. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class VALUE> bool xref:BloombergLP/bsltf/operator_eq-08b.adoc[operator==]( xref:BloombergLP/bsltf/TestValuesArrayIterator.adoc[TestValuesArrayIterator<VALUE>] const& lhs, xref:BloombergLP/bsltf/TestValuesArrayIterator.adoc[TestValuesArrayIterator<VALUE>] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-08b.adoc[_» more..._]# Return `true` if `lhs` and `rhs` refer to the same element. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class VALUE> bool xref:BloombergLP/bsltf/operator_eq-05f.adoc[operator==]( xref:BloombergLP/bsltf/TestValuesArrayIterator.adoc[TestValuesArrayIterator<VALUE>] const& lhs, xref:BloombergLP/bsltf/TestValuesArraySentinel.adoc[TestValuesArraySentinel<VALUE>] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-05f.adoc[_» more..._]# Return whether sentinel and iterator refer to the same element. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class VALUE> bool xref:BloombergLP/bsltf/operator_eq-03ee.adoc[operator==]( xref:BloombergLP/bsltf/TestValuesArraySentinel.adoc[TestValuesArraySentinel<VALUE>] const& lhs, xref:BloombergLP/bsltf/TestValuesArrayIterator.adoc[TestValuesArrayIterator<VALUE>] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-03ee.adoc[_» more..._]# Return whether two objects have the same value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bsltf/EvilBooleanType.adoc[bsltf::EvilBooleanType] xref:BloombergLP/bsltf/operator_eq-0afd.adoc[operator==]( xref:BloombergLP/bsltf/EvilBooleanType.adoc[EvilBooleanType] const& lhs, xref:BloombergLP/bsltf/EvilBooleanType.adoc[EvilBooleanType] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-0afd.adoc[_» more..._]# Return whether two allocators wrap the same underlying allocator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class TYPE1, class TYPE2, bool PROPAGATE_ON_CONTAINER_COPY_CONSTRUCTION, bool PROPAGATE_ON_CONTAINER_COPY_ASSIGNMENT, bool PROPAGATE_ON_CONTAINER_SWAP, bool PROPAGATE_ON_CONTAINER_MOVE_ASSIGNMENT, bool IS_ALWAYS_EQUAL> bool xref:BloombergLP/bsltf/operator_eq-04d.adoc[operator==]( xref:BloombergLP/bsltf/StdStatefulAllocator.adoc[StdStatefulAllocator<TYPE1, PROPAGATE_ON_CONTAINER_COPY_CONSTRUCTION, PROPAGATE_ON_CONTAINER_COPY_ASSIGNMENT, PROPAGATE_ON_CONTAINER_SWAP, PROPAGATE_ON_CONTAINER_MOVE_ASSIGNMENT, IS_ALWAYS_EQUAL>] const& lhs, xref:BloombergLP/bsltf/StdStatefulAllocator.adoc[StdStatefulAllocator<TYPE2, PROPAGATE_ON_CONTAINER_COPY_CONSTRUCTION, PROPAGATE_ON_CONTAINER_COPY_ASSIGNMENT, PROPAGATE_ON_CONTAINER_SWAP, PROPAGATE_ON_CONTAINER_MOVE_ASSIGNMENT, IS_ALWAYS_EQUAL>] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-04d.adoc[_» more..._]# Return `true` because `StdTestAllocator` does not hold a state. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class TYPE1, class TYPE2> bool xref:BloombergLP/bsltf/operator_eq-0e5.adoc[operator==]( xref:BloombergLP/bsltf/StdTestAllocator-05.adoc[StdTestAllocator<TYPE1>] const& lhs, xref:BloombergLP/bsltf/StdTestAllocator-05.adoc[StdTestAllocator<TYPE2>] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-0e5.adoc[_» more..._]# Return whether two objects have the same value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bsltf/operator_eq-0c3.adoc[operator==]( xref:BloombergLP/bsltf/AllocBitwiseMoveableTestType.adoc[AllocBitwiseMoveableTestType] const& lhs, xref:BloombergLP/bsltf/AllocBitwiseMoveableTestType.adoc[AllocBitwiseMoveableTestType] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-0c3.adoc[_» more..._]# Return `true` if the specified `lhs` and `rhs` have the same value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bsltf/operator_eq-01e.adoc[operator==]( xref:BloombergLP/bsltf/NonOptionalAllocTestType.adoc[NonOptionalAllocTestType] const& lhs, xref:BloombergLP/bsltf/NonOptionalAllocTestType.adoc[NonOptionalAllocTestType] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-01e.adoc[_» more..._]# Return whether two objects have the same value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bsltf/operator_eq-0a9.adoc[operator==]( xref:BloombergLP/bsltf/NonDefaultConstructibleTestType.adoc[NonDefaultConstructibleTestType] const& lhs, xref:BloombergLP/bsltf/NonDefaultConstructibleTestType.adoc[NonDefaultConstructibleTestType] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-0a9.adoc[_» more..._]# Return whether two objects have the same value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bsltf/operator_eq-055.adoc[operator==]( xref:BloombergLP/bsltf/NonCopyConstructibleTestType.adoc[NonCopyConstructibleTestType] const& lhs, xref:BloombergLP/bsltf/NonCopyConstructibleTestType.adoc[NonCopyConstructibleTestType] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-055.adoc[_» more..._]# Return whether two objects have the same value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bsltf/operator_eq-075.adoc[operator==]( xref:BloombergLP/bsltf/NonAssignableTestType.adoc[NonAssignableTestType] const& lhs, xref:BloombergLP/bsltf/NonAssignableTestType.adoc[NonAssignableTestType] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-075.adoc[_» more..._]# Return whether the two objects have the same value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bsltf/operator_eq-0f1.adoc[operator==]( xref:BloombergLP/bsltf/MoveOnlyAllocTestType.adoc[MoveOnlyAllocTestType] const& lhs, xref:BloombergLP/bsltf/MoveOnlyAllocTestType.adoc[MoveOnlyAllocTestType] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-0f1.adoc[_» more..._]# Return `true` if the specified `lhs` and `rhs` have the same value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bsltf/operator_eq-0eb.adoc[operator==]( xref:BloombergLP/bsltf/MovableTestType.adoc[MovableTestType] const& lhs, xref:BloombergLP/bsltf/MovableTestType.adoc[MovableTestType] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-0eb.adoc[_» more..._]# Return `true` if the specified `lhs` and `rhs` have the same value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bsltf/operator_eq-007.adoc[operator==]( xref:BloombergLP/bsltf/MovableAllocTestType.adoc[MovableAllocTestType] const& lhs, xref:BloombergLP/bsltf/MovableAllocTestType.adoc[MovableAllocTestType] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-007.adoc[_» more..._]# Return whether two `EmplacableTestType` objects have the same value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bsltf/operator_eq-016.adoc[operator==]( xref:BloombergLP/bsltf/EmplacableTestType.adoc[EmplacableTestType] const& lhs, xref:BloombergLP/bsltf/EmplacableTestType.adoc[EmplacableTestType] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-016.adoc[_» more..._]# Return whether two `CopyMoveTracker` objects have the same value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool xref:BloombergLP/bsltf/operator_eq-0844.adoc[operator==]( xref:BloombergLP/bsltf/CopyMoveTracker.adoc[CopyMoveTracker] const& lhs, OTHER const& rhs) requires bsl::is_same<CopyMoveTracker, OTHER>::value; ---- [.small]#xref:BloombergLP/bsltf/operator_eq-0844.adoc[_» more..._]# Return whether two objects have the same value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bsltf/operator_eq-0b2.adoc[operator==]( xref:BloombergLP/bsltf/BitwiseMoveableTestType.adoc[BitwiseMoveableTestType] const& lhs, xref:BloombergLP/bsltf/BitwiseMoveableTestType.adoc[BitwiseMoveableTestType] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-0b2.adoc[_» more..._]# Return whether two objects have the same value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bsltf/operator_eq-05c.adoc[operator==]( xref:BloombergLP/bsltf/BitwiseCopyableTestType.adoc[BitwiseCopyableTestType] const& lhs, xref:BloombergLP/bsltf/BitwiseCopyableTestType.adoc[BitwiseCopyableTestType] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-05c.adoc[_» more..._]# Return whether two objects have the same value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bsltf/operator_eq-0b9e.adoc[operator==]( xref:BloombergLP/bsltf/AllocTestType.adoc[AllocTestType] const& lhs, xref:BloombergLP/bsltf/AllocTestType.adoc[AllocTestType] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-0b9e.adoc[_» more..._]# Return whether two `AllocEmplacableTestType` objects have the same value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bsltf/operator_eq-09e.adoc[operator==]( xref:BloombergLP/bsltf/AllocEmplacableTestType.adoc[AllocEmplacableTestType] const& lhs, xref:BloombergLP/bsltf/AllocEmplacableTestType.adoc[AllocEmplacableTestType] const& rhs); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-09e.adoc[_» more..._]# Same as the preceding overload with operand order reversed. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bsltf/operator_eq-0af1.adoc[operator==]( int a, xref:BloombergLP/bsltf/CopyMoveState-0e/Enum.adoc[CopyMoveState::Enum] b); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-0af1.adoc[_» more..._]# Return `true` if the integral values of the specified `a` and `b` compare equal; otherwise return `false`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bsltf/operator_eq-008.adoc[operator==]( xref:BloombergLP/bsltf/CopyMoveState-0e/Enum.adoc[CopyMoveState::Enum] a, int b); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-008.adoc[_» more..._]# == Return Value * `true` if both refer to the same element * `true` if `lhs` and `rhs` compare equal, else `false` * `true` if both iterators refer to the same position * `true` if both iterators refer to the same object * `true` if both iterators refer to the same element * an `EvilBooleanType` converting to `true` if the operands are equal * `true` if `lhs` and `rhs` wrap the same allocator, else `false` * `true` because `StdTestAllocator` does not hold a state * `true` if `lhs` and `rhs` have the same value, and `false` otherwise * `true` * `true` if `a` and `b` compare equal, else `false` == Parameters [cols="1,4"] |=== | Name| Description | *lhs* | iterator to compare | *rhs* | sentinel to compare | *a* | left‐hand operand | *b* | right‐hand operand |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#