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-no-concepts 11 12 // template<class I> 13 // concept permutable = see below; // Since C++20 14 15 #include <iterator> 16 17 template<class I> void test_subsumption() requires std::forward_iterator<I>; 18 template<class I> void test_subsumption() requires std::indirectly_movable_storable<I, I>; 19 template<class I> void test_subsumption() requires std::indirectly_swappable<I, I>; 20 template<class I> constexpr bool test_subsumption() requires std::permutable<I> { return true; } 21 static_assert(test_subsumption<int*>()); 22