1*8f1d8785SKonstantin Varlamov //===----------------------------------------------------------------------===//
2*8f1d8785SKonstantin Varlamov //
3*8f1d8785SKonstantin Varlamov // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*8f1d8785SKonstantin Varlamov // See https://llvm.org/LICENSE.txt for license information.
5*8f1d8785SKonstantin Varlamov // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*8f1d8785SKonstantin Varlamov //
7*8f1d8785SKonstantin Varlamov //===----------------------------------------------------------------------===//
8*8f1d8785SKonstantin Varlamov 
9*8f1d8785SKonstantin Varlamov // UNSUPPORTED: c++03, c++11, c++14, c++17
10*8f1d8785SKonstantin Varlamov 
11*8f1d8785SKonstantin Varlamov // template<class I>
12*8f1d8785SKonstantin Varlamov //   concept permutable = see below; // Since C++20
13*8f1d8785SKonstantin Varlamov 
14*8f1d8785SKonstantin Varlamov #include <iterator>
15*8f1d8785SKonstantin Varlamov 
16*8f1d8785SKonstantin Varlamov template<class I> void test_subsumption() requires std::forward_iterator<I>;
17*8f1d8785SKonstantin Varlamov template<class I> void test_subsumption() requires std::indirectly_movable_storable<I, I>;
18*8f1d8785SKonstantin Varlamov template<class I> void test_subsumption() requires std::indirectly_swappable<I, I>;
test_subsumption()19*8f1d8785SKonstantin Varlamov template<class I> constexpr bool test_subsumption() requires std::permutable<I> { return true; }
20*8f1d8785SKonstantin Varlamov static_assert(test_subsumption<int*>());
21