TRIQS/itertools 1.3.0
C++ range library
|
#include <itertools/stride.hpp>
Represents a strided range.
See itertools::stride(R &&, std::ptrdiff_t) for more details.
R | Range type. |
Definition at line 92 of file stride.hpp.
Public Types | |
using | const_iterator = stride_iter<decltype(std::cbegin(rg))> |
Const iterator type of the strided range. | |
using | iterator = stride_iter<decltype(std::begin(rg))> |
Iterator type of the strided range. | |
Public Member Functions | |
const_iterator | begin () const noexcept |
Const overload of begin(). | |
iterator | begin () noexcept |
Beginning of the strided range. | |
const_iterator | cbegin () const noexcept |
Const version of begin(). | |
const_iterator | cend () const noexcept |
Const version of end(). | |
const_iterator | end () const noexcept |
Const overload of end(). | |
iterator | end () noexcept |
End of the strided range. | |
bool | operator== (strided const &) const =default |
Default equal-to operator. | |
Public Attributes | |
R | rg |
Original range. | |
std::ptrdiff_t | stride |
Number of elements in the original range to skip when incrementing the iterator. | |
|
inlinenodiscardnoexcept |
Beginning of the strided range.
Definition at line 120 of file stride.hpp.
|
inlinenodiscardnoexcept |
End of the strided range.
Definition at line 133 of file stride.hpp.