Iterator Comparison

It is possible to obtain the distance between to BasisIterator instances by:

int64_t danceq::internal::BasisIterator::distance(const BasisIterator<BasisU1> &basisiterator) const

Returns distance between two BasisIterator.

Parameters:

basisiterator – Basisiterator for comparison

Returns:

distance

The class exhibits all relevant comparison functions:

bool danceq::internal::BasisIterator::operator==(const BasisIterator<BasisU1> &basisiterator) const

Compares two instances.

The comparison is done using the index.

Parameters:

basisiterator – BasisIterator to be compared

Returns:

true if both instances are equal, otherwise false

bool danceq::internal::BasisIterator::operator!=(const BasisIterator<BasisU1> &basisiterator) const

Compares two instances.

The comparison is done using the index.

Parameters:

basisiterator – BasisIterator to be compared

Returns:

false if both instances are equal, otherwise true

bool danceq::internal::BasisIterator::operator>(const BasisIterator<BasisU1> &basisiterator) const

Compares two instances.

The comparison is done using the index.

Parameters:

basisiterator – BasisIterator to be compared

Returns:

true if this is greater, otherwise false

bool danceq::internal::BasisIterator::operator<(const BasisIterator<BasisU1> &basisiterator) const

Compares two instances.

The comparison is done using the index.

Parameters:

basisiterator – BasisIterator to be compared

Returns:

true if this is lesser, otherwise false

bool danceq::internal::BasisIterator::operator>=(const BasisIterator<BasisU1> &basisiterator) const

Compares two instances.

The comparison is done using the index.

Parameters:

basisiterator – BasisIterator to be compared

Returns:

true if this is greater equal, otherwise false

bool danceq::internal::BasisIterator::operator<=(const BasisIterator<BasisU1> &basisiterator) const

Compares two instances.

The comparison is done using the index.

Parameters:

basisiterator – BasisIterator to be compared

Returns:

true if this is lesser equal, otherwise false