mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-08 04:27:53 +03:00
9 lines
141 B
C++
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;
|
|
}
|
|
}
|