cppitertools icon indicating copy to clipboard operation
cppitertools copied to clipboard

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

Open nimrodfg opened this issue 2 years ago • 1 comments

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.

nimrodfg avatar Dec 26 '22 11:12 nimrodfg

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.

ryanhaining avatar Dec 27 '22 02:12 ryanhaining