xieite::type_list<Ts...>::at<>

Defined in header <xieite/meta/type_list.hpp>

Selects an element of a xieite::type_list {} by its index.


Declaration

template<std::size_t idx>
using at = /* Ts...[idx] */;


Example

int main() {
	using List = xieite::type_list<int, char, float, double>;

	xieite::dump(xieite::name<List::at<2>>());
}
Possible output:
float
[View in Compiler Explorer]