Path: blob/main/contrib/llvm-project/libcxx/include/__cxx03/__fwd/string.h
213799 views
//===----------------------------------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef _LIBCPP___CXX03___FWD_STRING_H9#define _LIBCPP___CXX03___FWD_STRING_H1011#include <__cxx03/__config>12#include <__cxx03/__fwd/memory.h>1314#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)15# pragma GCC system_header16#endif1718_LIBCPP_BEGIN_NAMESPACE_STD1920template <class _CharT>21struct _LIBCPP_TEMPLATE_VIS char_traits;22template <>23struct char_traits<char>;2425#ifndef _LIBCPP_HAS_NO_CHAR8_T26template <>27struct char_traits<char8_t>;28#endif2930template <>31struct char_traits<char16_t>;32template <>33struct char_traits<char32_t>;3435#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS36template <>37struct char_traits<wchar_t>;38#endif3940template <class _CharT, class _Traits = char_traits<_CharT>, class _Allocator = allocator<_CharT> >41class _LIBCPP_TEMPLATE_VIS basic_string;4243using string = basic_string<char>;4445#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS46using wstring = basic_string<wchar_t>;47#endif4849#ifndef _LIBCPP_HAS_NO_CHAR8_T50using u8string = basic_string<char8_t>;51#endif5253using u16string = basic_string<char16_t>;54using u32string = basic_string<char32_t>;5556// clang-format off57template <class _CharT, class _Traits, class _Allocator>58class _LIBCPP_PREFERRED_NAME(string)59#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS60_LIBCPP_PREFERRED_NAME(wstring)61#endif62#ifndef _LIBCPP_HAS_NO_CHAR8_T63_LIBCPP_PREFERRED_NAME(u8string)64#endif65_LIBCPP_PREFERRED_NAME(u16string)66_LIBCPP_PREFERRED_NAME(u32string)67basic_string;68// clang-format on6970_LIBCPP_END_NAMESPACE_STD7172#endif // _LIBCPP___CXX03___FWD_STRING_H737475