I want to use a special method to initialize a std::vector which is described in a C++ book I use as a reference (the German book \'Der C++
std::vector
C++11:
std::vector idxs (n); std::generate_n (idxs.begin (), n, [] { static int i {1}; return i++; });