kblib 0.2.3
General utilities library for modern C++
enumerate-contrib-tw.h File Reference
#include "tdecl.h"
#include <iterator>
#include <utility>
Include dependency graph for enumerate-contrib-tw.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kblib::enumerate_iterator< It >
 
struct  kblib::enumerate_t< Range, void >
 
struct  kblib::enumerate_t< It, EndIt >
 

Namespaces

namespace  kblib
 The main namespace in which all entities from kblib are defined.
 

Functions

template<typename Range >
constexpr auto kblib::enumerate (Range &&r) -> enumerate_t< Range && >
 Allow access to indexes while using range-based for loops. Safe to use with rvalues. More...
 
template<typename It , typename EIt >
constexpr auto kblib::enumerate (It begin, EIt end) -> enumerate_t< It, EIt >
 Allow access to indexes while using range-based for loops. More...