//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // UNSUPPORTED: c++03, c++11, c++14, c++17 // UNSUPPORTED: libcpp-has-no-incomplete-ranges // template S, class T1, class T2, // output_iterator O, class Proj = identity> // requires indirectly_copyable && // indirect_binary_predicate, const T1*> // constexpr replace_copy_result // replace_copy(I first, S last, O result, const T1& old_value, const T2& new_value, // Proj proj = {}); // Since C++20 // // template O, // class Proj = identity> // requires indirectly_copyable, O> && // indirect_binary_predicate, Proj>, const T1*> // constexpr replace_copy_result, O> // replace_copy(R&& r, O result, const T1& old_value, const T2& new_value, // Proj proj = {}); // Since C++20 // TODO: synopsis #include #include #include #include #include #include "almost_satisfies_types.h" #include "test_iterators.h" // TODO: SFINAE tests. constexpr bool test() { // TODO: main tests. // TODO: A custom comparator works. // TODO: A custom projection works. return true; } int main(int, char**) { test(); static_assert(test()); return 0; }