mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-31 11:57:15 +02:00
temporarily disabled parallel algorithms
This commit is contained in:
committed by
Christian Mazakas
parent
9a8ba2bdff
commit
8f348aea26
@ -26,7 +26,7 @@
|
|||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
#if !defined(BOOST_NO_CXX17_HDR_EXECUTION)
|
#if defined(BOOST_UNORDERED_PARALLEL_ALGORITHMS)
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -197,7 +197,7 @@ class concurrent_table:concurrent_table_core_impl<TypePolicy,Hash,Pred,Allocator
|
|||||||
using super::N;
|
using super::N;
|
||||||
using prober=typename super::prober;
|
using prober=typename super::prober;
|
||||||
|
|
||||||
#if !defined(BOOST_NO_CXX17_HDR_EXECUTION)
|
#if defined(BOOST_UNORDERED_PARALLEL_ALGORITHMS)
|
||||||
template<typename ExecutionPolicy>
|
template<typename ExecutionPolicy>
|
||||||
using is_execution_policy=std::is_execution_policy<
|
using is_execution_policy=std::is_execution_policy<
|
||||||
typename std::remove_cv<
|
typename std::remove_cv<
|
||||||
@ -287,7 +287,7 @@ public:
|
|||||||
visit_all([&](const value_type& v){f(v);});
|
visit_all([&](const value_type& v){f(v);});
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(BOOST_NO_CXX17_HDR_EXECUTION)
|
#if defined(BOOST_UNORDERED_PARALLEL_ALGORITHMS)
|
||||||
template<typename ExecutionPolicy,typename F>
|
template<typename ExecutionPolicy,typename F>
|
||||||
void visit_all(ExecutionPolicy&& policy,F f)
|
void visit_all(ExecutionPolicy&& policy,F f)
|
||||||
{
|
{
|
||||||
@ -407,7 +407,7 @@ public:
|
|||||||
return super::erase_if_impl(std::forward<F>(f));
|
return super::erase_if_impl(std::forward<F>(f));
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(BOOST_NO_CXX17_HDR_EXECUTION)
|
#if defined(BOOST_UNORDERED_PARALLEL_ALGORITHMS)
|
||||||
template<typename ExecutionPolicy,typename F>
|
template<typename ExecutionPolicy,typename F>
|
||||||
auto erase_if(ExecutionPolicy&& policy,F f)->typename std::enable_if<
|
auto erase_if(ExecutionPolicy&& policy,F f)->typename std::enable_if<
|
||||||
is_execution_policy<ExecutionPolicy>::value,void>::type
|
is_execution_policy<ExecutionPolicy>::value,void>::type
|
||||||
@ -782,7 +782,7 @@ private:
|
|||||||
if(this->size_==this->ml)super::rehash(super::capacity()+1);
|
if(this->size_==this->ml)super::rehash(super::capacity()+1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(BOOST_NO_CXX17_HDR_EXECUTION)
|
#if defined(BOOST_UNORDERED_PARALLEL_ALGORITHMS)
|
||||||
template<typename ExecutionPolicy,typename F>
|
template<typename ExecutionPolicy,typename F>
|
||||||
auto for_all_elements_exec(ExecutionPolicy&& policy,F f)
|
auto for_all_elements_exec(ExecutionPolicy&& policy,F f)
|
||||||
->decltype(f(nullptr),void())
|
->decltype(f(nullptr),void())
|
||||||
|
Reference in New Issue
Block a user