Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time

make_array

Source code

Basic implementation of make_array

.. function:: template <class... Ts>\
              constexpr std::array<std::decay_t<std::common_type_t<Ts...>>, sizeof...(Ts)>\
              tl::make_array(Ts&&... ts)

    Create a `std::array` from the given arguments, deducing the type and size
    of the array.

    Example: ::

        tl::make_array(0,1,2,3); // std::array<int,4>{0,1,2,3}