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 // XFAIL: msvc && clang 12 13 // <string_view> 14 15 // template<class charT, class traits> 16 // inline constexpr bool ranges::enable_borrowed_range< 17 // basic_string_view<charT, traits>> = true; 18 19 #include <string_view> 20 21 #include "test_macros.h" 22 23 void test() { 24 using std::ranges::enable_borrowed_range; 25 static_assert(enable_borrowed_range<std::basic_string_view<char> >); 26 static_assert(enable_borrowed_range<std::basic_string_view<wchar_t> >); 27 static_assert(enable_borrowed_range<std::basic_string_view<char8_t> >); 28 } 29