ForEach Class Reference

#include <apibase.h>

Detailed Description

The constructor of ForEach allows to iterate over the values of a variadic parameter. The iteration will happen in the correct order. Example:

template <typename... T> T Sum(T... values)
{
T s = T();
ForEach{s += values...};
return s;
}
PyObject PyObject const char const char char ** s
Definition: bytesobject.h:60
constexpr ForEach(ARGS &&...)
Definition: apibase.h:1581

Public Member Functions

template<typename... ARGS>
constexpr ForEach (ARGS &&...)
 

Constructor & Destructor Documentation

◆ ForEach()

constexpr ForEach ( ARGS &&  ...)
explicitconstexpr