Equality operators
Synopses
Declared in <bsltf_allocbitwisemoveabletesttype.h>
Return true if the specified iterator and sentinel refer to the same element, and false otherwise.
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.
bool
operator==(
SimpleTestType const& lhs,
SimpleTestType const& rhs);
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.
template<class ALLOC>
bool
operator==(
StdAllocTestType<ALLOC> const& lhs,
StdAllocTestType<ALLOC> const& rhs);
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.
bool
operator==(
UnionTestType const& lhs,
UnionTestType const& rhs);
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.
bool
operator==(
WellBehavedMoveOnlyAllocTestType const& lhs,
WellBehavedMoveOnlyAllocTestType const& rhs);
Return true if the specified iterators refer to the same underlying position, and false otherwise.
bool
operator==(
InputIterator<TYPE2> const&,
InputIterator<TYPE2> const&);
Return true if the specified lhs and rhs refer to the same TYPE object and false othersise.
template<class TYPE>
bool
operator==(
InputIterator<TYPE> const& lhs,
InputIterator<TYPE> const& rhs);
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.
template<
class TYPE1,
class TYPE2>
bool
operator==(
StdAllocatorAdaptor<TYPE1> const& lhs,
StdAllocatorAdaptor<TYPE2> const& rhs);
Return true if the specified sentinel and iterator refer to the same element, and false otherwise.
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.
bool
operator==(
NonTypicalOverloadsTestType const& lhs,
NonTypicalOverloadsTestType const& rhs);
Return true if the specified iterators refer to the same element, and false otherwise.
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.
template<class VALUE>
bool
operator==(
TestValuesArrayIterator<VALUE> const& lhs,
TestValuesArrayIterator<VALUE> const& rhs);
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.
template<class VALUE>
bool
operator==(
TestValuesArrayIterator<VALUE> const& lhs,
TestValuesArraySentinel<VALUE> const& rhs);
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.
template<class VALUE>
bool
operator==(
TestValuesArraySentinel<VALUE> const& lhs,
TestValuesArrayIterator<VALUE> const& rhs);
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.
bsltf::EvilBooleanType
operator==(
EvilBooleanType const& lhs,
EvilBooleanType const& rhs);
Return true if the specified lhs and rhs have the same underlying test allocator, and false otherwise.
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
operator==(
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,
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);
Return true because StdTestAllocator does not hold a state.
template<
class TYPE1,
class TYPE2>
bool
operator==(
StdTestAllocator<TYPE1> const& lhs,
StdTestAllocator<TYPE2> const& rhs);
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.
bool
operator==(
AllocBitwiseMoveableTestType const& lhs,
AllocBitwiseMoveableTestType const& rhs);
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.
bool
operator==(
NonOptionalAllocTestType const& lhs,
NonOptionalAllocTestType const& rhs);
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.
bool
operator==(
NonDefaultConstructibleTestType const& lhs,
NonDefaultConstructibleTestType const& rhs);
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.
bool
operator==(
NonCopyConstructibleTestType const& lhs,
NonCopyConstructibleTestType const& rhs);
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.
bool
operator==(
NonAssignableTestType const& lhs,
NonAssignableTestType const& rhs);
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.
bool
operator==(
MoveOnlyAllocTestType const& lhs,
MoveOnlyAllocTestType const& rhs);
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.
bool
operator==(
MovableTestType const& lhs,
MovableTestType const& rhs);
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.
bool
operator==(
MovableAllocTestType const& lhs,
MovableAllocTestType const& rhs);
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.
bool
operator==(
EmplacableTestType const& lhs,
EmplacableTestType const& rhs);
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.
constexpr
bool
operator==(
CopyMoveTracker const&,
OTHER const&)
requires bsl::is_same<CopyMoveTracker, OTHER>::value;
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.
bool
operator==(
BitwiseMoveableTestType const& lhs,
BitwiseMoveableTestType const& rhs);
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.
bool
operator==(
BitwiseCopyableTestType const& lhs,
BitwiseCopyableTestType const& rhs);
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.
bool
operator==(
AllocTestType const& lhs,
AllocTestType const& rhs);
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.
bool
operator==(
AllocEmplacableTestType const& lhs,
AllocEmplacableTestType const& rhs);
Same as the preceding overload with operand order reversed.
bool
operator==(
int a,
CopyMoveState::Enum b);
Return true if the integral values of the specified a and b compare equal; otherwise return false.
bool
operator==(
CopyMoveState::Enum a,
int b);
Created with MrDocs