Equality operators
Synopses
Declared in <bslstl_bidirectionaliterator.h>
Return true if lhs and rhs have the same value.
template<
class T1,
class T2,
class ITER_IMP,
class TAG_TYPE>
bool
operator==(
ForwardIterator<T1, ITER_IMP, TAG_TYPE> const& lhs,
ForwardIterator<T2, ITER_IMP, TAG_TYPE> const& rhs);
Return whether two bidirectional iterators refer to the same position.
template<
class T1,
class T2,
class ITER_IMP,
class TAG_TYPE>
bool
operator==(
BidirectionalIterator<T1, ITER_IMP, TAG_TYPE> const& lhs,
BidirectionalIterator<T2, ITER_IMP, TAG_TYPE> const& rhs);
Return true if lhs and rhs have the same value.
template<
class T1,
class T2,
class ITER_IMP,
class TAG_TYPE>
bool
operator==(
RandomAccessIterator<T1, ITER_IMP, TAG_TYPE> const& lhs,
RandomAccessIterator<T2, ITER_IMP, TAG_TYPE> const& rhs);
Return whether the specified iterators refer to the same tree node.
bool
operator==(
TreeIterator<VALUE1, NODEPTR, DIFF> const& lhs,
TreeIterator<VALUE2, NODEPTR, DIFF> const& rhs);
Return true if lhs and rhs refer to the same position.
template<
class VALUE1,
class VALUE2,
class NODEPTR,
class DIFF>
bool
operator==(
TreeIterator<VALUE1, NODEPTR, DIFF> const& lhs,
TreeIterator<VALUE2, NODEPTR, DIFF> const& rhs);
Return true if lhs and rhs have the same value.
template<
class KEY_CONFIG,
class HASHER,
class COMPARATOR,
class ALLOCATOR>
bool
operator==(
HashTable<KEY_CONFIG, HASHER, COMPARATOR, ALLOCATOR> const& lhs,
HashTable<KEY_CONFIG, HASHER, COMPARATOR, ALLOCATOR> const& rhs);
Return true if the specified lhs and rhs have the same value.
template<
class VALUE_TYPE,
class DIFFERENCE_TYPE>
bool
operator==(
HashTableBucketIterator<VALUE_TYPE, DIFFERENCE_TYPE> const& lhs,
HashTableBucketIterator<VALUE_TYPE, DIFFERENCE_TYPE> const& rhs);
Return true if the specified lhs and rhs have the same value.
template<
class VALUE_TYPE,
class DIFFERENCE_TYPE>
bool
operator==(
HashTableBucketIterator<VALUE_TYPE, DIFFERENCE_TYPE> const& lhs,
HashTableBucketIterator<VALUE_TYPE const, DIFFERENCE_TYPE> const& rhs);
Return true if the specified lhs and rhs have the same value.
template<
class VALUE_TYPE,
class DIFFERENCE_TYPE>
bool
operator==(
HashTableBucketIterator<VALUE_TYPE const, DIFFERENCE_TYPE> const& lhs,
HashTableBucketIterator<VALUE_TYPE, DIFFERENCE_TYPE> const& rhs);
Return true if the specified lhs and rhs have the same value.
template<
class VALUE_TYPE,
class DIFFERENCE_TYPE>
bool
operator==(
HashTableBucketIterator<VALUE_TYPE const, DIFFERENCE_TYPE> const& lhs,
HashTableBucketIterator<VALUE_TYPE const, DIFFERENCE_TYPE> const& rhs);
Return true if lhs and rhs have the same value.
template<
class VALUE_TYPE,
class DIFFERENCE_TYPE>
bool
operator==(
HashTableIterator<VALUE_TYPE, DIFFERENCE_TYPE> const& lhs,
HashTableIterator<VALUE_TYPE, DIFFERENCE_TYPE> const& rhs);
Same as the preceding overload.
template<
class VALUE_TYPE,
class DIFFERENCE_TYPE>
bool
operator==(
HashTableIterator<VALUE_TYPE, DIFFERENCE_TYPE> const& lhs,
HashTableIterator<VALUE_TYPE const, DIFFERENCE_TYPE> const& rhs);
Same as the preceding overload.
template<
class VALUE_TYPE,
class DIFFERENCE_TYPE>
bool
operator==(
HashTableIterator<VALUE_TYPE const, DIFFERENCE_TYPE> const& lhs,
HashTableIterator<VALUE_TYPE, DIFFERENCE_TYPE> const& rhs);
Same as the preceding overload.
template<
class VALUE_TYPE,
class DIFFERENCE_TYPE>
bool
operator==(
HashTableIterator<VALUE_TYPE const, DIFFERENCE_TYPE> const& lhs,
HashTableIterator<VALUE_TYPE const, DIFFERENCE_TYPE> const& rhs);
Return Value
-
trueiflhsandrhshave the same value, andfalseotherwise -
trueif the iterators have the same value, andfalseotherwise -
trueif the iterators refer to the same tree node, andfalseotherwise -
trueif the hash tables compare equal -
trueif the iterators have the same value
Parameters
Name |
Description |
lhs |
first iterator to compare |
rhs |
second iterator to compare |
Created with MrDocs