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