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