mosesdecoder/contrib/other-builds/moses2/Util.h
2015-10-24 13:14:49 +01:00

9 lines
141 B
C++

#pragma once
template<typename T>
void Init(T arr[], size_t size, const T &val) {
for (size_t i = 0; i < size; ++i) {
arr[i] = val;
}
}