From 202a43804422d823ec524cfc691dbc638c110920 Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Wed, 29 Dec 2021 11:42:46 -0800 Subject: [PATCH] Implement heterogeneous `find()` for multiset --- include/boost/unordered/unordered_set.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/boost/unordered/unordered_set.hpp b/include/boost/unordered/unordered_set.hpp index f710c702..ecb12bda 100644 --- a/include/boost/unordered/unordered_set.hpp +++ b/include/boost/unordered/unordered_set.hpp @@ -1053,6 +1053,16 @@ namespace boost { const_iterator find(const key_type&) const; + template + typename boost::enable_if_c::value, + const_iterator>::type + find(const Key& k) const + { + return const_iterator(table_.find_node_impl( + table::policy::apply_hash(this->hash_function(), k), k, + this->key_eq())); + } + template const_iterator find(CompatibleKey const&, CompatibleHash const&,