1 //===----------------------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++03, c++11, c++14, c++17
13 // template<class charT, class traits>
14 // inline constexpr bool ranges::enable_borrowed_range<
15 // basic_string_view<charT, traits>> = true;
17 #include <string_view>
19 #include "test_macros.h"
22 using std::ranges::enable_borrowed_range
;
23 static_assert(enable_borrowed_range
<std::basic_string_view
<char> >);
24 static_assert(enable_borrowed_range
<std::basic_string_view
<wchar_t> >);
25 static_assert(enable_borrowed_range
<std::basic_string_view
<char8_t
> >);