Differential D58852 Diff 188992 test/std/algorithms/alg.modifying.operations/transform_binary.pass.cpp
Changeset View
Changeset View
Standalone View
Standalone View
test/std/algorithms/alg.modifying.operations/transform_binary.pass.cpp
- This file was moved from test/test_transform_binary.cpp.
// -*- C++ -*- | // -*- C++ -*- | ||||
//===-- test_transform_binary.cpp -----------------------------------------===// | //===-- transform_binary.pass.cpp -----------------------------------------===// | ||||
// | // | ||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||||
// See https://llvm.org/LICENSE.txt for license information. | // See https://llvm.org/LICENSE.txt for license information. | ||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||||
// | // | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
#include "support/pstl_test_config.h" | |||||
#include <type_traits> | |||||
#ifdef PSTL_STANDALONE_TESTS | |||||
#include "pstl/execution" | #include "pstl/execution" | ||||
#include "pstl/algorithm" | #include "pstl/algorithm" | ||||
#include "utils.h" | #else | ||||
#include <execution> | |||||
#include <algorithm> | |||||
#endif // PSTL_STANDALONE_TESTS | |||||
#include "support/parallel_utils.h" | |||||
using namespace TestUtils; | using namespace Parallel_TestUtils; | ||||
template <typename In1, typename In2, typename Out> | template <typename In1, typename In2, typename Out> | ||||
class TheOperation | class TheOperation | ||||
{ | { | ||||
Out val; | Out val; | ||||
public: | public: | ||||
TheOperation(Out v) : val(v) {} | TheOperation(Out v) : val(v) {} | ||||
▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines |