BloombergLP::bslstl::operator==

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

Synopsis

Declared in <bslstl_treeiterator.h>

template<
    class VALUE1,
    class VALUE2,
    class NODEPTR,
    class DIFF>
bool
operator==(
    TreeIterator<VALUE1, NODEPTR, DIFF> const& lhs,
    TreeIterator<VALUE2, NODEPTR, DIFF> const& rhs);

Description

Return true if the specified lhs and the specified rhs iterators have the same value and false otherwise. Two iterators have the same value if they refer to the same position in the same tree, or if both iterators are at an invalid position in the tree (i.e., the end of the tree, or the default constructed value).

Return Value

true if lhs and rhs have the same value, and false otherwise

Parameters

NameDescription
lhsfirst iterator to compare
rhssecond iterator to compare