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