Skip to content

RoseAst::iterator::operator==

Test iterator equality.

Synopsis

Declared in <src/midend/abstractLayer/RoseAst.h>

bool
operator==(iterator const& x) const;

Description

Two iterators are equal if they point to the same node or they're both end iterators. Two iterators that are pointing to null nodes are equal if and only if they refer to the same (identical) null value. If they refer to different null values they are different. Hence, different null values in the AST are treated like different nodes. This is necessary to allow STL algorithms to work.

Additionally, even if two iterators are pointing to the same AST node they will be equal only if they're in the same skipChildrenOnForward state.

Return Value

true if the objects are equal, false otherwise

Parameters

Name

Description

x

The right operand

Created with MrDocs