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 whether two objects have the same value.

bool
operator==(
    SimpleTestType const& lhs,
    SimpleTestType const& rhs);

Return whether two objects have the same value.

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.

bool
operator==(
    UnionTestType const& lhs,
    UnionTestType const& rhs);

Return true if the specified lhs and rhs objects have the same value, and false otherwise.

Return whether the specified iterators refer to the same position.

bool
operator==(
    InputIterator<TYPE2> const& lhs,
    InputIterator<TYPE2> const& rhs);

Return whether two input iterators refer to the same position.

template<class TYPE>
bool
operator==(
    InputIterator<TYPE> const& lhs,
    InputIterator<TYPE> const& rhs);

Return whether two allocator adaptors compare 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 whether two objects have the same value.

Return true if the specified iterators refer to the same element, and false otherwise.

Return true if lhs and rhs refer to the same element.

template<class VALUE>
bool
operator==(
    TestValuesArrayIterator<VALUE> const& lhs,
    TestValuesArrayIterator<VALUE> const& rhs);

Return true if lhs and rhs refer to the same element.

template<class VALUE>
bool
operator==(
    TestValuesArrayIterator<VALUE> const& lhs,
    TestValuesArraySentinel<VALUE> const& rhs);

Return whether sentinel and iterator refer to the same element.

template<class VALUE>
bool
operator==(
    TestValuesArraySentinel<VALUE> const& lhs,
    TestValuesArrayIterator<VALUE> const& rhs);

Return whether two objects have the same value.

Return whether two allocators wrap the same underlying allocator.

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 whether two objects have the same value.

Return true if the specified lhs and rhs have the same value.

Return whether two objects have the same value.

Return whether two objects have the same value.

Return whether two objects have the same value.

bool
operator==(
    NonAssignableTestType const& lhs,
    NonAssignableTestType const& rhs);

Return whether the two objects have the same value.

bool
operator==(
    MoveOnlyAllocTestType const& lhs,
    MoveOnlyAllocTestType const& rhs);

Return true if the specified lhs and rhs have the same value.

bool
operator==(
    MovableTestType const& lhs,
    MovableTestType const& rhs);

Return true if the specified lhs and rhs have the same value.

bool
operator==(
    MovableAllocTestType const& lhs,
    MovableAllocTestType const& rhs);

Return whether two EmplacableTestType objects have the same value.

bool
operator==(
    EmplacableTestType const& lhs,
    EmplacableTestType const& rhs);

Return whether two CopyMoveTracker objects have the same value.

constexpr
bool
operator==(
    CopyMoveTracker const& lhs,
    OTHER const& rhs)
requires bsl::is_same<CopyMoveTracker, OTHER>::value;

Return whether two objects have the same value.

Return whether two objects have the same value.

Return whether two objects have the same value.

bool
operator==(
    AllocTestType const& lhs,
    AllocTestType const& rhs);

Return whether two AllocEmplacableTestType objects have the same value.

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);

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

Name

Description

lhs

iterator to compare

rhs

sentinel to compare

a

left‐hand operand

b

right‐hand operand

Created with MrDocs