mosesdecoder/contrib/other-builds/moses2/Util.h

9 lines
141 B
C
Raw Normal View History

2015-10-24 15:14:49 +03:00
#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;
}
}