//===----------------------------------------------------------------------===// // // 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, // weakly_incrementable O1, weakly_incrementable O2, // class Proj = identity, indirect_unary_predicate> Pred> // requires indirectly_copyable && indirectly_copyable // constexpr partition_copy_result // partition_copy(I first, S last, O1 out_true, O2 out_false, Pred pred, // Proj proj = {}); // Since C++20 // // template, Proj>> Pred> // requires indirectly_copyable, O1> && // indirectly_copyable, O2> // constexpr partition_copy_result, O1, O2> // partition_copy(R&& r, O1 out_true, O2 out_false, Pred pred, Proj proj = {}); // Since C++20 #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; }