Skip to content

Commit

Permalink
Define std_any_of().
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Jun 21, 2024
1 parent 210027a commit 5f9e0f8
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 @@ -249,12 +249,14 @@ namespace bc = libbitcoin;
/// C++17 (partial)
#if defined(HAVE_EXECUTION)
#include <execution>
#define std_any_of(p, b, e, l) std::any_of((p), (b), (e), (l))
#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_any_of(p, b, e, l) std::any_of((b), (e), (l))
#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))
Expand Down

0 comments on commit 5f9e0f8

Please sign in to comment.