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

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


Deduplicates the elements of a xieite::type_list.


Declaration

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


Example

import xieite;

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]