added explicit disabling/enabling of parallel algorithms

This commit is contained in:
joaquintides
2023-03-18 09:15:28 +01:00
committed by Christian Mazakas
parent 9e4f89aa43
commit c5debf11cf

View File

@ -26,6 +26,13 @@
#include <type_traits>
#include <utility>
#if !defined(BOOST_UNORDERED_DISABLE_PARALLEL_ALGORITHMS)
#if defined(BOOST_UNORDERED_ENABLE_PARALLEL_ALGORITHMS)|| \
!defined(BOOST_NO_CXX17_HDR_EXECUTION)
#define BOOST_UNORDERED_PARALLEL_ALGORITHMS
#endif
#endif
#if defined(BOOST_UNORDERED_PARALLEL_ALGORITHMS)
#include <algorithm>
#include <execution>