Program Listing for File tmp.h¶
↰ Return to documentation for file (include/lupnt/tmp.h
)
#pragma once
#include <numeric>
#include <vector>
namespace lupnt {
template <typename T> std::vector<T> make_vector(std::size_t size) {
std::vector<T> v(size, 0);
std::iota(v.begin(), v.end(), 0);
return v;
}
} // namespace lupnt