Skip to content

Commit

Permalink
Add std::all_of for conditional execution policy.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Apr 11, 2023
1 parent b52f6ba commit ca31227
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/bitcoin/system/define.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,13 @@ namespace bc = libbitcoin;
/// C++17 (partial)
#if defined(HAVE_EXECUTION)
#include <execution>
#define std_all_of(p, b, e, l) std::all_of((p), (b), (e), (l))
#define std_for_each(p, b, e, l) std::for_each((p), (b), (e), (l))
#define std_transform(p, b, e, t, l) std::transform((p), (b), (e), (t), (l))
namespace libbitcoin { constexpr auto par_unseq = std::execution::par_unseq; }
namespace libbitcoin { constexpr auto seq = std::execution::seq; }
#else
#define std_all_of(p, b, e, l) std::all_of((b), (e), (l))
#define std_for_each(p, b, e, l) std::for_each((b), (e), (l))
#define std_transform(p, b, e, t, l) std::transform((b), (e), (t), (l))
namespace libbitcoin { constexpr auto par_unseq = false; }
Expand Down

0 comments on commit ca31227

Please sign in to comment.