Utopia
2
Framework for studying models of complex & adaptive systems.
|
Tools for iterating over collections. More...
Classes | |
class | ZipIterator |
Iterator over an arbitrary number of collections. More... | |
class | zip |
A range defined by instances of ZipIterator. More... | |
Functions | |
template<typename... Iterators> | |
ZipIterator (std::tuple< Iterators... > iters) -> ZipIterator< Iterators... > | |
Deduce the iterator types from the types inside the tuple. More... | |
template<typename Adaptor , typename... Containers> | |
auto | adapt_zip (Adaptor &&adaptor, Containers &... containers) |
Return a zip iterator built from an adapter applied to containers. More... | |
template<typename... Containers> | |
auto | begin (zip< Containers... > &zipper) |
Begin function like std::begin. More... | |
template<typename... Containers> | |
auto | end (zip< Containers... > &zipper) |
end function like std::end More... | |
template<typename... Containers> | |
auto | cbegin (zip< Containers... > &zipper) |
Begin function like std::begin. More... | |
template<typename... Containers> | |
auto | cend (zip< Containers... > &zipper) |
end function like std::end More... | |
template<typename... Containers> | |
auto | rbegin (zip< Containers... > &zipper) |
Begin function like std::begin. More... | |
template<typename... Containers> | |
auto | rend (zip< Containers... > &zipper) |
end function like std::end More... | |
Tools for iterating over collections.
auto Utopia::Itertools::begin | ( | zip< Containers... > & | zipper | ) |
Begin function like std::begin.
Containers |
zipper |
auto Utopia::Itertools::cbegin | ( | zip< Containers... > & | zipper | ) |
Begin function like std::begin.
Containers |
zipper |
auto Utopia::Itertools::cend | ( | zip< Containers... > & | zipper | ) |
end function like std::end
Containers |
zipper |
auto Utopia::Itertools::end | ( | zip< Containers... > & | zipper | ) |
end function like std::end
Containers |
zipper |
auto Utopia::Itertools::rbegin | ( | zip< Containers... > & | zipper | ) |
Begin function like std::begin.
Containers |
zipper |
auto Utopia::Itertools::rend | ( | zip< Containers... > & | zipper | ) |
end function like std::end
Containers |
zipper |
Utopia::Itertools::ZipIterator | ( | std::tuple< Iterators... > | iters | ) | -> ZipIterator< Iterators... > |
Deduce the iterator types from the types inside the tuple.