cmoon::meta::get_type


Defined in module <cmoon.meta>


template<std::size_t Index, typename... Ts>
using get_type = /* see below */;


(1)

Gets the type located at Index from the parameter pack Ts.... This alias is ill-formed if Index <= sizeof...(Ts).

Example



import <concepts>;

import cmoon.meta;

int main()
{
    using t = cmoon::meta::get_type<2, int, int, float, double>;

    static_assert(std::same_as<t, float>);
}