xieite::type_list<Ts...>::dedup<>

Defined in header <xieite/meta/type_list.hpp>

Deduplicates the elements of a xieite::type_list {}.


Declaration

template<auto cmp = []<typename T, std::same_as<T>> {}>
using dedup = /* xieite::type_list<???> */;


Example

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

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