// -*- C++ -*- //===-- reduce.pass.cpp ---------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // UNSUPPORTED: c++03, c++11, c++14 #include "support/pstl_test_config.h" #include <execution> #include <numeric> #include "support/utils.h" usingnamespaceTestUtils; struct test_long_forms_for_one_policy { … }; template <typename T, typename BinaryOp, typename F> void test_long_form(T init, BinaryOp binary_op, F f) { … } struct test_two_short_forms { … }; // Test forms of reduce(...) that omit the binary_op or init operands. void test_short_forms() { … } int main() { … }