added bulk_visit2

This commit is contained in:
joaquintides
2023-09-29 19:34:04 +02:00
parent 1a2e5c8ffe
commit 379b3047ee
2 changed files with 17 additions and 10 deletions
@@ -252,6 +252,14 @@ namespace boost {
return table_.bulk_visit(keys, f);
}
template<std::size_t M,typename F>
BOOST_FORCEINLINE
std::size_t bulk_visit2(const std::array<key_type,M>& keys,F f)const
{
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F)
return table_.bulk_visit2(keys, f);
}
template <class K, class F>
BOOST_FORCEINLINE typename std::enable_if<
detail::are_transparent<K, hasher, key_equal>::value, size_type>::type