ryanhaining / cppitertools

Implementation of python itertools and builtin iteration functions for C++17
https://twitter.com/cppitertools
BSD 2-Clause "Simplified" License
1.35k stars 115 forks source link

unique_everseen should be templated by a hash function and use a different set object #90

Open nimrodfg opened 1 year ago

nimrodfg commented 1 year ago

Currently we can't use unique_everseen for proto-buffs, or any element that doesn't have std::hash. Would make sense to make functions for which its relevant to be templated by equality and hash operators.

ryanhaining commented 1 year ago

Good point. I added an overload. I'm not sure if there's a good/right way to get the pipe syntax working with the new version though.