lst-0272-book.cpp
// https://godbolt.org/z/T7afh4vxz
#include <vector>
std::vector<int> createData(unsigned size) {
std::vector<int> result{};
for(int idx=0; idx<size; ++idx) {
result.push_back(idx);
}
return result;
}
// https://godbolt.org/z/T7afh4vxz
#include <vector>
std::vector<int> createData(unsigned size) {
std::vector<int> result{};
for(int idx=0; idx<size; ++idx) {
result.push_back(idx);
}
return result;
}