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<forward_iterator I, sentinel_for<I> S, class Proj = identity, 15 // indirect_unary_predicate<projected<I, Proj>> Pred> 16 // constexpr I partition_point(I first, S last, Pred pred, Proj proj = {}); // Since C++20 17 // 18 // template<forward_range R, class Proj = identity, 19 // indirect_unary_predicate<projected<iterator_t<R>, Proj>> Pred> 20 // constexpr borrowed_iterator_t<R> 21 // partition_point(R&& r, Pred pred, Proj proj = {}); // Since C++20 22 23 #include <algorithm> 24 #include <array> 25 #include <concepts> 26 #include <functional> 27 #include <ranges> 28 29 #include "almost_satisfies_types.h" 30 #include "test_iterators.h" 31 32 // TODO: SFINAE tests. 33 34 constexpr bool test() { 35 // TODO: main tests. 36 // TODO: A custom comparator works. 37 // TODO: A custom projection works. 38 39 return true; 40 } 41 42 int main(int, char**) { 43 test(); 44 static_assert(test()); 45 46 return 0; 47 } 48