By Andrey_Karpov_2009
via paulkeir.wordpress.com
Submitted: Dec 03 2012 / 07:36
A simple indexing class of variadic std::size_t template parameters is often used to provide a structured method to select multiple elements from a C++11 tuple. In this post I present an alternative to this interface, commonly used when building an object of this type, wherein a finite series of indices is now generated according to a numeric range and signed stride; akin to Fortran array section syntax. Let’s look at the common solution first.
Add your comment