how to pass std::array with unknown size to function C++ code example
Example: how to pass std::array with unknown size to function C++
template<std::size_t SIZE>
void mulArray(std::array<int, SIZE>& arr, const int multiplier) {
for(auto& e : arr) {
e *= multiplier;
}
}