TRIQS/itertools 1.3.0
C++ range library
Loading...
Searching...
No Matches
stride.hpp File Reference
#include "./iterator_facade.hpp"
#include "./utils.hpp"
#include <cstddef>
#include <iterator>
#include <stdexcept>
#include <utility>

Detailed Description

Provides a range adapting function for striding through a given range/view.

Definition in file stride.hpp.

Go to the source code of this file.

Classes

struct  itertools::stride_iter< Iter >
 Iterator for a itertools::strided range. More...
 
struct  itertools::strided< R >
 Represents a strided range. More...
 

Functions

template<typename R >
strided< R > itertools::stride (R &&rg, std::ptrdiff_t stride)
 Lazy-stride through a given range.