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
ForEach(ARGS &&...)
Definition: apibase.h:1599

Public Member Functions

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

Constructor & Destructor Documentation

◆ ForEach()

ForEach ( ARGS &&  ...)
explicit