| 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 | |
| 11 | // <string_view> |
| 12 | |
| 13 | // template<class charT, class traits> |
| 14 | // inline constexpr bool ranges::enable_borrowed_range< |
| 15 | // basic_string_view<charT, traits>> = true; |
| 16 | |
| 17 | #include <string_view> |
| 18 | |
| 19 | #include "test_macros.h" |
| 20 | |
| 21 | void test() { |
| 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> >); |
| 26 | } |
| 27 | |