userver: userver/utils/constexpr_indices.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
constexpr_indices.hpp File Reference

Detailed Description

Functions for iterating over a constexpr range of integers.

Definition in file constexpr_indices.hpp.

Go to the source code of this file.

#include <cstddef>
#include <type_traits>
#include <utility>
+ Include dependency graph for constexpr_indices.hpp:
+ This graph shows which files directly or indirectly include this file:

Namespaces

namespace  utils
 Utilities.
 

Functions

template<std::size_t Count, typename Func >
void utils::ForEachIndex (Func func)
 
template<std::size_t Count, typename Func >
void utils::WithConstexprIndex (std::size_t runtime_index, Func func)
 Calls func with runtime_index wrapped in std::integral_constant.