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

Defined in header <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...>::replace<idx, idx + 1, T>;


Example

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]