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

A type that yields an AlephIterator over its Item_Types. More...

#include <ah-concepts.H>

Concept definition

template<typename C>
requires
{
typename C::Item_Type;
typename C::Iterator;
} and
std::constructible_from<typename C::Iterator, const C &>
A type that yields an AlephIterator over its Item_Types.
An Aleph cursor-style iterator, as generic library code uses it.
and
Check uniqueness with explicit hash + equality functors.

Detailed Description

A type that yields an AlephIterator over its Item_Types.

Requires Item_Type and a nested Iterator satisfying AlephIterator that can be built from a const container, Iterator it(c). That is how the library obtains iterators (get_it(), where it exists, is a wrapper around it; MemArray and the raw hash tables only offer the constructor). This is the single test both functional layers (ah-uni-functional.H, ah-zip-utils.H) use to decide whether to iterate a container the Aleph way.

Template Parameters
Ccandidate container type.

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