Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (11 sloc) 561 Bytes

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}
You can’t perform that action at this time.