xieite::type_list<Ts...>::set<>

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


Replaces one element of a xieite::type_list.


Declaration

template<std::size_t idx, typename T>
using set = xieite::type_list<Ts...>::rplc<idx, idx + 1, T>;


Example

import xieite;

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

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