[#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&, xref:BloombergLP/bsltf/TestValuesArraySentinel.adoc[TestValuesArraySentinel<OTHER_VALUE>] const&); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-0849.adoc[_» more..._]# Return `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise. Two `SimpleTestType` objects have the same value if their `data` attributes are the same. [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 `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise. Two `AllocTestType` objects have the same if their `data` attributes are the same. [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, and `false` otherwise. Two `UnionTestType` objects have the same if their `data` attributes are the same. [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. Two `WellBehavedMoveOnlyAllocTestType` objects have the same if their `data` attributes are the same. [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 `true` if the specified iterators refer to the same underlying position, and `false` otherwise. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bsltf/operator_eq-05b.adoc[operator==]( xref:BloombergLP/bsltf/InputIterator.adoc[InputIterator<TYPE2>] const&, xref:BloombergLP/bsltf/InputIterator.adoc[InputIterator<TYPE2>] const&); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-05b.adoc[_» more..._]# Return `true` if the specified `lhs` and `rhs` refer to the same `TYPE` object and `false` othersise. [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 `true` if the specified `lhs` and `rhs` adaptors are equal and `false` otherwise. Two allocator adaptor instances are equal if their associated allocator instances are 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&, xref:BloombergLP/bsltf/TestValuesArrayIterator.adoc[TestValuesArrayIterator<OTHER_VALUE>] const&); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-0f3.adoc[_» more..._]# Return `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise. Two `NonTypicalOverloadsTestType` objects have the same if their `data` attributes are the same. [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&, xref:BloombergLP/bsltf/TestValuesArrayIterator.adoc[TestValuesArrayIterator<OTHER_VALUE>] const&); ---- [.small]#xref:BloombergLP/bsltf/operator_eq-0a5.adoc[_» more..._]# Return `true` if the specified `lhs` and the specified `rhs` refer to the same element, and `false` otherwise. The behavior is undefined unless `lhs` and `rhs` are comparable. [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 the specified `lhs` and the specified `rhs` refer to the same element, and `false` otherwise. The behavior is undefined unless `lhs` and `rhs` are comparable. [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 `true` if the specified `lhs` and the specified `rhs` refer to the same element, and `false` otherwise. The behavior is undefined unless `lhs` and `rhs` are comparable. [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 an `EvilBoolanType` value that converts to `true` if the specified `lhs` and `rhs` have the same value, and a value that converts to `false` otherwise. Two `EvilBooleanType` objects have the same value if the values resulting from converting each to `bool` 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 `true` if the specified `lhs` and `rhs` have the same underlying test allocator, and `false` otherwise. [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 `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise. Two `AllocBitwiseMoveableTestType` objects have the same if their `data` attributes are the same. [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` objects have the same value, and `false` otherwise. Two `NonOptionalAllocTestType` objects have the same if their `data` attributes are the same. [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 `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise. Two `NonDefaultConstructibleTestType` objects have the same if their `data` attributes are the same. [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 `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise. Two `NonCopyConstructibleTestType` objects have the same if their `data` attributes are the same. [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 `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise. Two `NonAssignableTestType` objects have the same if their `data` attributes are the same. [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 `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise. Two `MoveOnlyAllocTestType` objects have the same if their `data` attributes are the same. [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` objects have the same `data()` value, and `false` otherwise. Two `MovableTestType` objects have the same value if their `data` attributes are the same. TBD: think about the behavior when specified on an object that was moved‐from on this as well as other functions/methods if appropriate. [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` objects have the same value, and `false` otherwise. Two `MovableAllocTestType` objects have the same if their `data` attributes are the same. TBD: think about the behavior when specified on an object that was moved‐from on this as well as other functions/methods if appropriate. [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 `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise. Two `EmplacableTestType` objects have the same value if each of their corresponding attributes 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 `true`; the copy/move state is _not_ a salient attribute, so all `CopyMoveTracker` objects compare equal. Note that this operator is called implicitly if a client class defines a defaulted comparison operator (C++20), but will not be selected by overload resolution for a derived class having no comparison operator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool xref:BloombergLP/bsltf/operator_eq-0844.adoc[operator==]( xref:BloombergLP/bsltf/CopyMoveTracker.adoc[CopyMoveTracker] const&, OTHER const&) requires bsl::is_same<CopyMoveTracker, OTHER>::value; ---- [.small]#xref:BloombergLP/bsltf/operator_eq-0844.adoc[_» more..._]# Return `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise. Two `BitwiseMoveableTestType` objects have the same if their `data` attributes are the same. [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 `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise. Two `BitwiseCopyableTestType` objects have the same if their `data` attributes are the same. [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 `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise. Two `AllocTestType` objects have the same if their `data` attributes are the same. [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 `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise. Two `AllocEmplacableTestType` objects have the same value if each of their corresponding attributes 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..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#