std::make_array
stackoverflow Current status of std::make_array
As @DeiDei writes, C++17 includes template argument deduction for classes, so you can now write:
std::pair p (foo, bar);
std::array arr = { 1, 2, 3, 4, 5 };
and so on. But there are some (somewhat subtle) remaining use cases where make_pair
or make_array
can be useful, and you can read about them in: Usefulness of std::make_pair and std::make_tuple in C++1z