mirror of
https://github.com/boostorg/unordered.git
synced 2025-11-03 09:11:42 +01:00
dropped [c]visit_until
This commit is contained in:
@@ -355,56 +355,6 @@ namespace boost {
|
||||
}
|
||||
#endif
|
||||
|
||||
template <class F> bool visit_until(F f)
|
||||
{
|
||||
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F)
|
||||
return table_.visit_until(f);
|
||||
}
|
||||
|
||||
template <class F> bool visit_until(F f) const
|
||||
{
|
||||
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F)
|
||||
return table_.visit_until(f);
|
||||
}
|
||||
|
||||
template <class F> bool cvisit_until(F f) const
|
||||
{
|
||||
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F)
|
||||
return table_.cvisit_until(f);
|
||||
}
|
||||
|
||||
#if defined(BOOST_UNORDERED_PARALLEL_ALGORITHMS)
|
||||
template <class ExecPolicy, class F>
|
||||
typename std::enable_if<detail::is_execution_policy<ExecPolicy>::value,
|
||||
bool>::type
|
||||
visit_until(ExecPolicy&& p, F f)
|
||||
{
|
||||
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F)
|
||||
BOOST_UNORDERED_STATIC_ASSERT_EXEC_POLICY(ExecPolicy)
|
||||
return table_.visit_until(p, f);
|
||||
}
|
||||
|
||||
template <class ExecPolicy, class F>
|
||||
typename std::enable_if<detail::is_execution_policy<ExecPolicy>::value,
|
||||
bool>::type
|
||||
visit_until(ExecPolicy&& p, F f) const
|
||||
{
|
||||
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F)
|
||||
BOOST_UNORDERED_STATIC_ASSERT_EXEC_POLICY(ExecPolicy)
|
||||
return table_.visit_until(p, f);
|
||||
}
|
||||
|
||||
template <class ExecPolicy, class F>
|
||||
typename std::enable_if<detail::is_execution_policy<ExecPolicy>::value,
|
||||
bool>::type
|
||||
cvisit_until(ExecPolicy&& p, F f) const
|
||||
{
|
||||
BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F)
|
||||
BOOST_UNORDERED_STATIC_ASSERT_EXEC_POLICY(ExecPolicy)
|
||||
return table_.cvisit_until(p, f);
|
||||
}
|
||||
#endif
|
||||
|
||||
template <class F> bool visit_while(F f)
|
||||
{
|
||||
BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F)
|
||||
|
||||
@@ -539,46 +539,6 @@ public:
|
||||
}
|
||||
#endif
|
||||
|
||||
template<typename F> bool visit_until(F&& f)
|
||||
{
|
||||
return !visit_while([&](value_type& x){return !f(x);});
|
||||
}
|
||||
|
||||
template<typename F> bool visit_until(F&& f)const
|
||||
{
|
||||
return !visit_while([&](const value_type& x){return !f(x);});
|
||||
}
|
||||
|
||||
template<typename F> bool cvisit_until(F&& f)const
|
||||
{
|
||||
return visit_while(std::forward<F>(f));
|
||||
}
|
||||
|
||||
#if defined(BOOST_UNORDERED_PARALLEL_ALGORITHMS)
|
||||
template<typename ExecutionPolicy,typename F>
|
||||
bool visit_until(ExecutionPolicy&& policy,F&& f)
|
||||
{
|
||||
return !visit_while(
|
||||
std::forward<ExecutionPolicy>(policy),
|
||||
[&](value_type& x){return !f(x);});
|
||||
}
|
||||
|
||||
template<typename ExecutionPolicy,typename F>
|
||||
bool visit_until(ExecutionPolicy&& policy,F&& f)const
|
||||
{
|
||||
return !visit_while(
|
||||
std::forward<ExecutionPolicy>(policy),
|
||||
[&](const value_type& x){return !f(x);});
|
||||
}
|
||||
|
||||
template<typename ExecutionPolicy,typename F>
|
||||
bool cvisit_until(ExecutionPolicy&& policy,F&& f)const
|
||||
{
|
||||
return visit_until(
|
||||
std::forward<ExecutionPolicy>(policy),std::forward<F>(f));
|
||||
}
|
||||
#endif
|
||||
|
||||
template<typename F> bool visit_while(F&& f)
|
||||
{
|
||||
return visit_while_impl(group_exclusive{},std::forward<F>(f));
|
||||
|
||||
Reference in New Issue
Block a user