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
16template<class I> void test_subsumption() requires std::forward_iterator<I>;
17template<class I> void test_subsumption() requires std::indirectly_movable_storable<I, I>;
18template<class I> void test_subsumption() requires std::indirectly_swappable<I, I>;
19template<class I> constexpr bool test_subsumption() requires std::permutable<I> { return true; }
20static_assert(test_subsumption<int*>());
21

source code of libcxx/test/std/iterators/iterator.requirements/alg.req.permutable/permutable.subsumption.compile.pass.cpp