TRIQS/itertools 1.3.0
C++ range library
|
#include <itertools/enumerate.hpp>
Represents an enumerated range.
See itertools::enumerate(R &&) for more details.
R | Range type. |
Definition at line 100 of file enumerate.hpp.
Public Types | |
using | const_iterator = enum_iter<decltype(std::cbegin(rg))> |
Const iterator type of the enumerated range. | |
using | iterator = enum_iter<decltype(std::begin(rg))> |
Iterator type of the enumerated range. | |
Public Member Functions | |
const_iterator | begin () const noexcept |
Const overload of begin(). | |
iterator | begin () noexcept |
Beginning of the enumerated range. | |
const_iterator | cbegin () const noexcept |
Const version of begin(). | |
auto | cend () const noexcept |
Const version of end(). | |
auto | end () const noexcept |
Const overload of end(). | |
auto | end () noexcept |
End of the enumerated range. | |
bool | operator== (enumerated const &) const =default |
Default equal-to operator. | |
Public Attributes | |
R | rg |
Original range. | |
|
inlinenodiscardnoexcept |
Beginning of the enumerated range.
Definition at line 117 of file enumerate.hpp.
|
inlinenodiscardnoexcept |
End of the enumerated range.
Definition at line 129 of file enumerate.hpp.