userver: userver/utils/enumerate.hpp File Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
enumerate.hpp File Reference

Implementation of python-style enumerate function for range-for loops. More...

#include <tuple>
#include <utility>
+ Include dependency graph for enumerate.hpp:

Go to the source code of this file.

Namespaces

namespace  utils
 Utilities.
 

Functions

template<typename Container >
constexpr auto utils::enumerate (Container &&iterable)
 Implementation of python-style enumerate function for range-for loops.
 

Detailed Description

Implementation of python-style enumerate function for range-for loops.

Definition in file enumerate.hpp.