Revert "[libc] Use best-fit binary trie to make malloc logarithmic" (#117065)
[llvm-project.git] / libcxx / test / std / strings / string.view / enable_borrowed_range.compile.pass.cpp
blob12f7d0fb0c070a5854b137d888bcd6f451aefd56
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 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++03, c++11, c++14, c++17
11 // <string_view>
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"
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> >);