1// -*- C++ -*- 2//===----------------------------------------------------------------------===// 3// 4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 5// See https://llvm.org/LICENSE.txt for license information. 6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7// 8//===----------------------------------------------------------------------===// 9 10export namespace std { 11 // [string.view.template], class template basic_string_view 12 using std::basic_string_view; 13 14 namespace ranges { 15 using std::ranges::enable_borrowed_range; 16 using std::ranges::enable_view; 17 } // namespace ranges 18 19 // [string.view.comparison], non-member comparison functions 20 using std::operator==; 21 using std::operator<=>; 22 23 // [string.view.io], inserters and extractors 24 using std::operator<<; 25 26 // basic_string_view typedef-names 27 using std::string_view; 28 using std::u16string_view; 29 using std::u32string_view; 30#ifndef _LIBCPP_HAS_NO_CHAR8_T 31 using std::u8string_view; 32#endif 33#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS 34 using std::wstring_view; 35#endif 36 37 // [string.view.hash], hash support 38 using std::hash; 39 40 inline namespace literals { 41 inline namespace string_view_literals { 42 // [string.view.literals], suffix for basic_string_view literals 43 using std::literals::string_view_literals::operator""sv; 44 } // namespace string_view_literals 45 } // namespace literals 46} // namespace std 47