fork download
#include <array>
#include <utility>
#include <algorithm>
#include <iostream>

template<class T, class... Tail>
std::array<T,1+sizeof...(Tail)> make_array(T&& head, Tail&&... values)
{
  return std::array<T,1+sizeof...(Tail)>{
     std::forward<T>(head), std::forward<Tail>(values)... };
}

int main(){
  auto arr = make_array(1,3,3,7,0,4,2,0,3,1,4,1,5,9);
  std::for_each(arr.begin(), arr.end(), [](int& val){std::cout << val << " ";});
}
Success #stdin #stdout 0s 2828KB
stdin
Standard input is empty
stdout
1 3 3 7 0 4 2 0 3 1 4 1 5 9