1 #pragma once // Source encoding: UTF-8 with BOM (π is a lowercase Greek "pi"). 10 template<
class Func,
class... Args >
11 void repeat(
const Size n,
const Func& f, Args&&... args )
13 for(
Index i = 0; i < n; ++i )
15 f( forward<Args>( args )... );
CPPX_USE_STD(basic_string, basic_string_view, bitset, char_traits, size)
Size Index
Same as Size but with name signifying use as index.
Signed_< size_t > Size
A Signed_ equivalent of size_t.
Macros for generating more concise and clear using statements, primarily $use_cppx and $use_std,...
void repeat(const Size n, const Func &f, Args &&... args)
Signed Size and Index, plus unsigned equivalents Unsigned_size and Unsigned_index.