mirror of
https://github.com/Unidata/netcdf-cxx4.git
synced 2024-11-21 03:13:46 +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;
|
|
}
|
|
}
|