xieite::type_list<Ts...>::slice<>

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

Extracts a subrange of a xieite::type_list {}. The end index is exclusive.


Declaration

template<std::size_t start, std::size_t end = sizeof...(Ts)>
requires((start <= end) && (end <= sizeof...(Ts)))
using slice = /* xieite::type_list<???> */;


Example

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

	xieite::dump(xieite::name<List::slice<1, 3>>());
}
Possible output:
xieite::type_list<char, float>
[View in Compiler Explorer]