TRIQS/itertools 1.3.0
C++ range library
Loading...
Searching...
No Matches
enumerate.hpp File Reference
#include "./iterator_facade.hpp"
#include "./sentinel.hpp"
#include <iterator>
#include <tuple>
#include <utility>

Detailed Description

Provides a range adapting function for enumerating a given range/view.

Definition in file enumerate.hpp.

Go to the source code of this file.

Classes

struct  itertools::enum_iter< Iter >
 Iterator for an itertools::enumerated range. More...
 
struct  itertools::enumerated< R >
 Represents an enumerated range. More...
 

Functions

template<typename R >
enumerated< R > itertools::enumerate (R &&rg)
 Lazy-enumerate a given range (similar to Python's enumerate).