iterator-based bulk visit

This commit is contained in:
joaquintides
2023-09-30 12:40:21 +02:00
parent e21e321bcf
commit 937081d1be
2 changed files with 139 additions and 88 deletions
@@ -244,12 +244,11 @@ namespace boost {
return table_.visit(k, f);
}
template<std::size_t M,typename F>
BOOST_FORCEINLINE
std::size_t bulk_visit(const std::array<key_type,M>& keys,F f)const
template<typename FwdIterator,typename F>
std::size_t visit(FwdIterator first,FwdIterator last,F f)const
{
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F)
return table_.bulk_visit(keys, f);
return table_.visit(first, last, f);
}
template <class K, class F>