Does C++20 define something similar to std::less
for three-way comparison operator (<=>
).
I would like define some datasructure with customizable comparator as map
or unordered_map
do.
template <class DefaultComparison = std::??????<Key>,
struct MyContainer ...
std::compare_three_way is what you are looking for.