Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::AlephUncheckedIterator Concept Reference

An AlephIterator whose get_curr_ne() gives what get_curr() gives, without its check. More...

#include <ah-concepts.H>

Concept definition

template<typename It>
requires(It & it) { it.get_curr_ne(); } and
std::same_as<decltype(std::declval<It &>().get_curr_ne()),
decltype(std::declval<It &>().get_curr())>
An Aleph cursor-style iterator, as generic library code uses it.
An AlephIterator whose get_curr_ne() gives what get_curr() gives, without its check.
and
Check uniqueness with explicit hash + equality functors.

Detailed Description

An AlephIterator whose get_curr_ne() gives what get_curr() gives, without its check.

A loop that asks has_curr() before it takes the current item, as Filter_Iterator::next_ne() and the traversals of the graphs do, takes it with get_curr_ne() when the iterator satisfies this. A derived iterator that redefines get_curr() alone keeps the get_curr_ne() of its base, which may give another type, such as the node instead of its item; then the loop keeps get_curr().

Template Parameters
Itcandidate iterator type.

Definition at line 313 of file ah-concepts.H.