Differential D58852 Diff 188992 test/std/algorithms/alg.modifying.operations/alg.copy/copy_if.pass.cpp
Changeset View
Changeset View
Standalone View
Standalone View
test/std/algorithms/alg.modifying.operations/alg.copy/copy_if.pass.cpp
- This file was moved from test/test_copy_if.cpp.
// -*- C++ -*- | // -*- C++ -*- | ||||
//===-- test_copy_if.cpp --------------------------------------------------===// | //===-- copy_if.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 copy_if and remove_copy_if | // Tests for copy_if and remove_copy_if | ||||
#include "pstl_test_config.h" | #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 run_copy_if | struct run_copy_if | ||||
{ | { | ||||
#if __PSTL_ICC_16_VC14_TEST_PAR_TBB_RT_RELEASE_64_BROKEN // dummy specializations to skip testing in case of broken configuration | #if __PSTL_ICC_16_VC14_TEST_PAR_TBB_RT_RELEASE_64_BROKEN // dummy specializations to skip testing in case of broken configuration | ||||
template <typename InputIterator, typename OutputIterator, typename OutputIterator2, typename Size, | template <typename InputIterator, typename OutputIterator, typename OutputIterator2, typename Size, | ||||
typename Predicate, typename T> | typename Predicate, typename T> | ||||
void | void | ||||
operator()(pstl::execution::parallel_policy, InputIterator first, InputIterator last, OutputIterator out_first, | operator()(__pstl::execution::parallel_policy, 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, | ||||
Predicate pred, T trash) | Predicate pred, T trash) | ||||
{ | { | ||||
} | } | ||||
template <typename InputIterator, typename OutputIterator, typename OutputIterator2, typename Size, | template <typename InputIterator, typename OutputIterator, typename OutputIterator2, typename Size, | ||||
typename Predicate, typename T> | typename Predicate, typename T> | ||||
void | void | ||||
operator()(pstl::execution::parallel_unsequenced_policy, InputIterator first, InputIterator last, | operator()(__pstl::execution::parallel_unsequenced_policy, InputIterator first, InputIterator last, | ||||
OutputIterator out_first, OutputIterator out_last, OutputIterator2 expected_first, | OutputIterator out_first, OutputIterator out_last, OutputIterator2 expected_first, | ||||
OutputIterator2 expected_last, Size n, Predicate pred, T trash) | OutputIterator2 expected_last, Size n, Predicate pred, T trash) | ||||
{ | { | ||||
} | } | ||||
#endif | #endif | ||||
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> | ||||
▲ Show 20 Lines • Show All 103 Lines • Show Last 20 Lines |