Changeset View
Changeset View
Standalone View
Standalone View
test/std/algorithms/alg.modifying.operations/replace_copy.pass.cpp
- This file was moved from test/test_replace_copy.cpp.
// -*- C++ -*- | // -*- C++ -*- | ||||
//===-- test_replace_copy.cpp ---------------------------------------------===// | //===-- replace_copy.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 | ||||
// | // | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
// Tests for replace_copy and replace_copy_if | // Tests for replace_copy and replace_copy_if | ||||
#include "pstl_test_config.h" | // Tests for copy_if and remove_copy_if | ||||
#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 | |||||
using namespace TestUtils; | #include "support/parallel_utils.h" | ||||
using namespace Parallel_TestUtils; | |||||
struct test_replace_copy | struct test_replace_copy | ||||
{ | { | ||||
template <typename Policy, typename InputIterator, typename OutputIterator, typename OutputIterator2, typename Size, | template <typename Policy, typename InputIterator, typename OutputIterator, typename OutputIterator2, typename Size, | ||||
typename Predicate, typename T> | typename Predicate, typename T> | ||||
void | void | ||||
operator()(Policy&& exec, InputIterator first, InputIterator last, OutputIterator out_first, | operator()(Policy&& exec, InputIterator first, InputIterator last, OutputIterator out_first, | ||||
OutputIterator out_last, OutputIterator2 expected_first, OutputIterator2 expected_last, Size n, | OutputIterator out_last, OutputIterator2 expected_first, OutputIterator2 expected_last, Size n, | ||||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |