2 //===--------------------------- string ----------------------------------===//
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
8 //===----------------------------------------------------------------------===//
10 #ifndef _LIBCPP_EXPERIMENTAL_STRING
11 #define _LIBCPP_EXPERIMENTAL_STRING
13 experimental/string synopsis
17 namespace experimental {
18 inline namespace fundamentals_v1 {
21 // basic_string using polymorphic allocator in namespace pmr
22 template <class charT, class traits = char_traits<charT>>
24 std::basic_string<charT, traits, polymorphic_allocator<charT>>;
26 // basic_string typedef names using polymorphic allocator in namespace
27 // std::experimental::pmr
28 typedef basic_string<char> string;
29 typedef basic_string<char16_t> u16string;
30 typedef basic_string<char32_t> u32string;
31 typedef basic_string<wchar_t> wstring;
34 } // namespace fundamentals_v1
35 } // namespace experimental
40 #include <experimental/__config>
42 #include <experimental/memory_resource>
44 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
45 #pragma GCC system_header
48 _LIBCPP_BEGIN_NAMESPACE_LFTS_PMR
50 template <class _CharT, class _Traits = char_traits<_CharT>>
52 _VSTD::basic_string<_CharT, _Traits, polymorphic_allocator<_CharT>>;
54 typedef basic_string<char> string;
55 typedef basic_string<char16_t> u16string;
56 typedef basic_string<char32_t> u32string;
57 typedef basic_string<wchar_t> wstring;
59 _LIBCPP_END_NAMESPACE_LFTS_PMR
61 #endif /* _LIBCPP_EXPERIMENTAL_STRING */