Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 561 Bytes

make_array.rst

File metadata and controls

17 lines (11 loc) · 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}