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 using std::u8string_view; 31#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS 32 using std::wstring_view; 33#endif 34 35 // [string.view.hash], hash support 36 using std::hash; 37 38 inline namespace literals { 39 inline namespace string_view_literals { 40 // [string.view.literals], suffix for basic_string_view literals 41 using std::literals::string_view_literals::operator""sv; 42 } // namespace string_view_literals 43 } // namespace literals 44} // namespace std 45