ForEach Class Reference

#include <tuple.h>

详细描述

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; }
警告
MSVC bug: the evaluation of an initializer list shall be in the correct order (8.5.4.4 List-initialization), but MSVC doesn't stick with this. Therefore, the order of the iteration is unspecified when using MSVC.

公共成员函数

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

构造函数 & 析构函数文档编制

◆  ForEach()

ForEach ( ARGS &&  ... )
explicit
maxon::ForEach::ForEach
ForEach(ARGS &&...)
定义: tuple.h:27