second_range_init-snippet.h 125 Bytes
Newer Older
1 2 3 4
std::vector<int> second_range(5);
for (size_t i = 0; i < range.size(); i++) {
  second_range[i] = static_cast<int>(i) + 5;
}