Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
ah-iterator.H File Reference

STL-compatible iterator adapters for Aleph containers. More...

#include <iterator>
#include <concepts>
#include <type_traits>
#include <utility>
Include dependency graph for ah-iterator.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  StlIterator< SetType >
 STL-compatible mutable iterator adapter for Aleph containers. More...
 
struct  StlConstIterator< SetType >
 STL-compatible const iterator adapter for Aleph containers. More...
 
class  StlAlephIterator< SetName >
 Mixin that adds STL begin()/end() and cbegin()/cend() to Aleph containers. More...
 

Functions

template<class Container >
Aleph::DynList< typename Container::value_type > extract_from_stl_container (const Container &c)
 Extract all items from an STL container into an Aleph DynList.
 

Detailed Description

STL-compatible iterator adapters for Aleph containers.

Provides StlIterator and StlConstIterator that wrap Aleph container iterators to satisfy std::input_iterator and std::forward_iterator concepts, enabling use with std::ranges and STL algorithms.

Author
Leandro Rabindranath León

Definition in file ah-iterator.H.

Function Documentation

◆ extract_from_stl_container()

template<class Container >
Aleph::DynList< typename Container::value_type > extract_from_stl_container ( const Container c)
inline

Extract all items from an STL container into an Aleph DynList.

Template Parameters
ContainerAny STL-like container supporting range-for iteration.
Parameters
cSource container.
Returns
A DynList containing copies of all elements from c.

Definition at line 317 of file ah-iterator.H.

References Aleph::DynList< T >::append().