mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-23 16:59:54 +08:00
9 lines
190 B
C++
9 lines
190 B
C++
#include <vector>
|
|
using namespace std;
|
|
|
|
template <class T> void initializeVector(std::vector<T>& dataVector) {
|
|
for(int i=0; i<dataVector.size(); i++) {
|
|
dataVector[i]=i;
|
|
}
|
|
}
|