Changeset View
Changeset View
Standalone View
Standalone View
test/std/algorithms/alg.merge/merge.pass.cpp
- This file was moved from test/test_merge.cpp.
// -*- C++ -*- | // -*- C++ -*- | ||||
//===-- test_merge.cpp ----------------------------------------------------===// | //===-- merge.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 "pstl_test_config.h" | // Tests for copy_if and remove_copy_if | ||||
#include "support/pstl_test_config.h" | |||||
#include <algorithm> | |||||
#include <functional> | #include <functional> | ||||
#ifdef PSTL_STANDALONE_TESTS | |||||
#include "pstl/execution" | #include "pstl/execution" | ||||
#include "pstl/algorithm" | #include "pstl/algorithm" | ||||
#else | |||||
#include <execution> | |||||
#include <algorithm> | |||||
#endif // PSTL_STANDALONE_TESTS | |||||
#include "utils.h" | #include "support/parallel_utils.h" | ||||
using namespace TestUtils; | using namespace Parallel_TestUtils; | ||||
struct test_merge | struct test_merge | ||||
{ | { | ||||
template <typename Policy, typename InputIterator1, typename InputIterator2, typename OutputIterator, | template <typename Policy, typename InputIterator1, typename InputIterator2, typename OutputIterator, | ||||
typename Compare> | typename Compare> | ||||
void | void | ||||
operator()(Policy&& exec, InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, | operator()(Policy&& exec, InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, | ||||
OutputIterator out_first, OutputIterator out_last, Compare comp) | OutputIterator out_first, OutputIterator out_last, Compare comp) | ||||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |