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: libcpp-has-no-incomplete-ranges 12 13 // template<class T> 14 // concept borrowed_range; 15 16 #include <ranges> 17 18 template <std::ranges::range R> 19 consteval bool check_subsumption() { 20 return false; 21 } 22 23 template <std::ranges::borrowed_range R> 24 consteval bool check_subsumption() { 25 return true; 26 } 27 28 static_assert(check_subsumption<int (&)[8]>()); 29