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