Initialize vector in place using boost::counting_iterator.