xieite::type_list<Ts...>::swap<>

Defined in fragment xieite:type_list
(header-only: <xieite/meta/type_list.hpp>)


Swaps two elements of a xieite::type_list by their indices.


Declaration

template<std::size_t idx0, std::size_t idx1>
using swap = /* xieite::type_list<???> */;


Example

import xieite;

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

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