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

Detailed Description

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

Definition in file enumerate.hpp.

Go to the source code of this file.

#include <cstddef>
#include <cstdint>
#include <iterator>
#include <type_traits>
#include <utility>
+ Include dependency graph for enumerate.hpp:
+ This graph shows which files directly or indirectly include 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.