blob: b881fcf3af1c34712055c0f894d7a3a49463a72d [file] [log] [blame]
Eric Fiseliere047a722016-05-07 03:09:55 +00001// -*- C++ -*-
Louis Dionne9bd93882021-11-17 16:25:01 -05002//===----------------------------------------------------------------------===//
Eric Fiseliere047a722016-05-07 03:09:55 +00003//
Chandler Carruthd2012102019-01-19 10:56:40 +00004// 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
Eric Fiseliere047a722016-05-07 03:09:55 +00007//
8//===----------------------------------------------------------------------===//
9
10#ifndef _LIBCPP_EXPERIMENTAL_STRING
11#define _LIBCPP_EXPERIMENTAL_STRING
12/*
13 experimental/string synopsis
14
15// C++1z
16namespace std {
17namespace experimental {
18inline namespace fundamentals_v1 {
19namespace pmr {
20
21 // basic_string using polymorphic allocator in namespace pmr
22 template <class charT, class traits = char_traits<charT>>
23 using basic_string =
24 std::basic_string<charT, traits, polymorphic_allocator<charT>>;
25
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;
32
33} // namespace pmr
34} // namespace fundamentals_v1
35} // namespace experimental
36} // namespace std
37
38 */
39
40#include <experimental/__config>
41#include <string>
42#include <experimental/memory_resource>
43
44#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
45#pragma GCC system_header
46#endif
47
48_LIBCPP_BEGIN_NAMESPACE_LFTS_PMR
49
50template <class _CharT, class _Traits = char_traits<_CharT>>
51using basic_string =
52 _VSTD::basic_string<_CharT, _Traits, polymorphic_allocator<_CharT>>;
53
54typedef basic_string<char> string;
55typedef basic_string<char16_t> u16string;
56typedef basic_string<char32_t> u32string;
Louis Dionne89258142021-08-23 15:32:36 -040057#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
Eric Fiseliere047a722016-05-07 03:09:55 +000058typedef basic_string<wchar_t> wstring;
Louis Dionne89258142021-08-23 15:32:36 -040059#endif
Eric Fiseliere047a722016-05-07 03:09:55 +000060
61_LIBCPP_END_NAMESPACE_LFTS_PMR
62
63#endif /* _LIBCPP_EXPERIMENTAL_STRING */