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 In, class Out>
12// concept indirectly_movable_storable;
13
14#include <iterator>
15
16template<class I, class O>
17 requires std::indirectly_movable<I, O>
18constexpr bool indirectly_movable_storable_subsumption() {
19 return false;
20}
21
22template<class I, class O>
23 requires std::indirectly_movable_storable<I, O>
24constexpr bool indirectly_movable_storable_subsumption() {
25 return true;
26}
27
28static_assert(indirectly_movable_storable_subsumption<int*, int*>());
29

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