Can you pass an array to a function by value? code example
Example: array reference argument
template<typename T, size_t N>
void foo(T (&bar)[N])
{
// use N here
}
template<typename T, size_t N>
void foo(T (&bar)[N])
{
// use N here
}