xieite::type_list<Ts...>::insert<>

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


Inserts types into a xieite::type_list.


Declaration

template<std::size_t idx, typename... Us>
using insert = xieite::type_list<Ts...>::rplc<idx, idx, Us...>;


Example

import xieite;

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

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