xieite ::type_list <Ts ...>::arrange <>
Defined in fragment xieite :type_list
(header-only:
<xieite/meta/type_list.hpp>
)
Rearranges the elements of a
xieite ::type_list
by their indices.Declaration
template <std ::size_t ... idxs >using arrange =xieite ::type_list <xieite ::type_list <Ts ...>::at <idxs >...>;
Example
Possible output:import xieite ;int main () {using List =xieite ::type_list <int ,char ,float ,double >;xieite ::dump (xieite ::name <List ::arrange <1 ,3 ,0 ,2 >>()); }
[View in Compiler Explorer]xieite::type_list<char, double, int, float>