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++
Reread the paragraphs near there describing what each of the parameters are. Specifically, it should mention that i and j are not values, but iterators. This constructor is very commonly used to make copies of other types of containers. If you want to get a sequence of values, the Boost library provides a counting iterator, that does exactly what you want.
std::vector numbers(
boost::counting_iterator(0U),
boost::counting_iterator(10U));