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