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

Defined in fragment xieite:type_list
(header-only: <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

import xieite;

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]