kblib 0.2.3
General utilities library for modern C++
|
#include <kblib/enumerate-contrib-tw.h>
Public Types | |
using | nested_reference = typename std::iterator_traits< It >::reference |
using | difference_type = std::ptrdiff_t |
using | value_type = std::pair< nested_reference, std::size_t > |
using | pointer = void |
using | reference = value_type |
using | iterator_category = std::input_iterator_tag |
Public Member Functions | |
constexpr auto | operator* () -> value_type |
constexpr auto | operator++ () &-> enumerate_iterator & |
constexpr auto | operator++ (int) -> enumerate_iterator |
template<typename OIt > | |
constexpr auto | operator== (OIt rhs) -> decltype(std::declval< It & >()==std::declval< OIt & >()) |
template<typename OIt > | |
constexpr auto | operator!= (OIt rhs) -> decltype(std::declval< It & >() !=std::declval< OIt & >()) |
Public Attributes | |
It | it |
std::size_t | idx |
Friends | |
constexpr friend auto | operator== (enumerate_iterator lhs, enumerate_iterator rhs) -> bool |
constexpr friend auto | operator!= (enumerate_iterator lhs, enumerate_iterator rhs) -> bool |
Definition at line 44 of file enumerate-contrib-tw.h.
using kblib::enumerate_iterator< It >::difference_type = std::ptrdiff_t |
Definition at line 50 of file enumerate-contrib-tw.h.
using kblib::enumerate_iterator< It >::iterator_category = std::input_iterator_tag |
Definition at line 54 of file enumerate-contrib-tw.h.
using kblib::enumerate_iterator< It >::nested_reference = typename std::iterator_traits<It>::reference |
Definition at line 48 of file enumerate-contrib-tw.h.
using kblib::enumerate_iterator< It >::pointer = void |
Definition at line 52 of file enumerate-contrib-tw.h.
using kblib::enumerate_iterator< It >::reference = value_type |
Definition at line 53 of file enumerate-contrib-tw.h.
using kblib::enumerate_iterator< It >::value_type = std::pair<nested_reference, std::size_t> |
Definition at line 51 of file enumerate-contrib-tw.h.
|
inlineconstexpr |
Definition at line 75 of file enumerate-contrib-tw.h.
|
inlineconstexpr |
Definition at line 56 of file enumerate-contrib-tw.h.
|
inlineconstexpr |
Definition at line 58 of file enumerate-contrib-tw.h.
|
inlineconstexpr |
Definition at line 63 of file enumerate-contrib-tw.h.
|
inlineconstexpr |
Definition at line 70 of file enumerate-contrib-tw.h.
|
friend |
Definition at line 84 of file enumerate-contrib-tw.h.
|
friend |
Definition at line 80 of file enumerate-contrib-tw.h.
std::size_t kblib::enumerate_iterator< It >::idx |
Definition at line 46 of file enumerate-contrib-tw.h.
It kblib::enumerate_iterator< It >::it |
Definition at line 45 of file enumerate-contrib-tw.h.