What you really want is something like the proposed std::array_ref (http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3334.html) which accepts any size and just contains a pointer range (or a pointer and count depending on how it's implemented), not template bloat for each possible container type, heap allocated containers, or pairs of iterators at every call point.
Another option people forget about though is std::initializer_list which is effectively array_ref, a lightweight contiguous homogeneous view of items. Although intended for constructors (where the name 'initializer' makes the most sense), they can be consumed by generic functions too. Note the contents are not copied when passed, just a pointer range, meaning you don't need to (and shouldn't) pass initializer_list by reference.
It lets you pass the series of numbers directly in the function call:
void myFunc(std::initializer_list<int> p)
{
cout << "array contains " << p.size() << "elements";
}
myFunc({1, 2, 3, 4, 5});
myFunc({6, 7, 8});
Or via an intermediate variable:
std::initializer_list<int> a = {1, 2, 3, 4, 5};
std::initializer_list<int> b = {6, 7, 8};
auto c = {1, 2, 3, 4, 5};
auto d = {6, 7, 8};
myFunc(a);
myFunc(b);
myFunc(c);
myFunc(d);
Or even, it appears, adapted from the fixed-size std::array using a constructor overload which takes a begin/end pair.
std::array<int, 5> e = {1, 2, 3, 4, 5};
std::array<int, 3> f = {6, 7, 8};
myFunc(std::initializer_list<int>(e.data(), e.data() + e.size()));
myFunc(std::initializer_list<int>(f.data(), f.data() + f.size()));
Though, I don't see this constructor overload listed on cppreference.com, nor in N4166. So this overload may be not standard and only found in Dinkumware's STL (used by Visual Studio 2015). Also, there are no implicit conversions from array/vector leaving you to ultimately write an intermediate helper template function anyway (or write more code than simply passing two ranges would be), which is too bad. Ideally std::array would support an operator method that promoted to initializer_list or array_ref would be adopted in the standard.