xieite ::type_list <Ts ...>::slice <>
Defined in fragment xieite :type_list
(header-only:
<xieite/meta/type_list.hpp>
)
Extracts a subrange of a
xieite ::type_list
. The end index is exclusive. Allows passing start and end indices in any order, because why not?Declaration
template <std ::size_t start ,std ::size_t end =sizeof... (Ts )>using slice =/* xieite::type_list<???> */ ;
Example
Possible output:import xieite ;int main () {using List =xieite ::type_list <int ,char ,float ,double >;xieite ::dump (xieite ::name <List ::slice <1 ,3 >>()); }
[View in Compiler Explorer]xieite::type_list<char, float>