Path: blob/main/contrib/llvm-project/libcxx/include/__fwd/string_view.h
35233 views
// -*- C++ -*-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-exception6//7//===---------------------------------------------------------------------===//89#ifndef _LIBCPP___FWD_STRING_VIEW_H10#define _LIBCPP___FWD_STRING_VIEW_H1112#include <__config>13#include <__fwd/string.h>1415#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)16# pragma GCC system_header17#endif1819_LIBCPP_BEGIN_NAMESPACE_STD2021template <class _CharT, class _Traits = char_traits<_CharT> >22class _LIBCPP_TEMPLATE_VIS basic_string_view;2324typedef basic_string_view<char> string_view;25#ifndef _LIBCPP_HAS_NO_CHAR8_T26typedef basic_string_view<char8_t> u8string_view;27#endif28typedef basic_string_view<char16_t> u16string_view;29typedef basic_string_view<char32_t> u32string_view;30#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS31typedef basic_string_view<wchar_t> wstring_view;32#endif3334// clang-format off35template <class _CharT, class _Traits>36class _LIBCPP_PREFERRED_NAME(string_view)37#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS38_LIBCPP_PREFERRED_NAME(wstring_view)39#endif40#ifndef _LIBCPP_HAS_NO_CHAR8_T41_LIBCPP_PREFERRED_NAME(u8string_view)42#endif43_LIBCPP_PREFERRED_NAME(u16string_view)44_LIBCPP_PREFERRED_NAME(u32string_view)45basic_string_view;46// clang-format on47_LIBCPP_END_NAMESPACE_STD4849#endif // _LIBCPP___FWD_STRING_VIEW_H505152