1 //===----------------------------------------------------------------------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 // UNSUPPORTED: c++03, c++11, c++14, c++17 10 // UNSUPPORTED: libcpp-has-no-incomplete-ranges 11 12 // <algorithm> 13 14 // template<input_iterator I, sentinel_for<I> S, weakly_incrementable O, class T, 15 // class Proj = identity> 16 // requires indirectly_copyable<I, O> && 17 // indirect_binary_predicate<ranges::equal_to, projected<I, Proj>, const T*> 18 // constexpr remove_copy_result<I, O> 19 // remove_copy(I first, S last, O result, const T& value, Proj proj = {}); // Since C++20 20 // 21 // template<input_range R, weakly_incrementable O, class T, class Proj = identity> 22 // requires indirectly_copyable<iterator_t<R>, O> && 23 // indirect_binary_predicate<ranges::equal_to, 24 // projected<iterator_t<R>, Proj>, const T*> 25 // constexpr remove_copy_result<borrowed_iterator_t<R>, O> 26 // remove_copy(R&& r, O result, const T& value, Proj proj = {}); // Since C++20 27 28 #include <algorithm> 29 #include <array> 30 #include <concepts> 31 #include <functional> 32 #include <ranges> 33 34 #include "almost_satisfies_types.h" 35 #include "test_iterators.h" 36 37 // TODO: SFINAE tests. 38 39 constexpr bool test() { 40 // TODO: main tests. 41 // TODO: A custom comparator works. 42 // TODO: A custom projection works. 43 44 return true; 45 } 46 47 int main(int, char**) { 48 test(); 49 static_assert(test()); 50 51 return 0; 52 } 53