annotate libcxx/include/experimental/string @ 222:81f6424ef0e3 llvm-original

LLVM original branch
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:10:01 +0900
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // -*- C++ -*-
anatofuz
parents:
diff changeset
2 //===--------------------------- string ----------------------------------===//
anatofuz
parents:
diff changeset
3 //
anatofuz
parents:
diff changeset
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
anatofuz
parents:
diff changeset
5 // See https://llvm.org/LICENSE.txt for license information.
anatofuz
parents:
diff changeset
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
anatofuz
parents:
diff changeset
7 //
anatofuz
parents:
diff changeset
8 //===----------------------------------------------------------------------===//
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 #ifndef _LIBCPP_EXPERIMENTAL_STRING
anatofuz
parents:
diff changeset
11 #define _LIBCPP_EXPERIMENTAL_STRING
anatofuz
parents:
diff changeset
12 /*
anatofuz
parents:
diff changeset
13 experimental/string synopsis
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 // C++1z
anatofuz
parents:
diff changeset
16 namespace std {
anatofuz
parents:
diff changeset
17 namespace experimental {
anatofuz
parents:
diff changeset
18 inline namespace fundamentals_v1 {
anatofuz
parents:
diff changeset
19 namespace pmr {
anatofuz
parents:
diff changeset
20
anatofuz
parents:
diff changeset
21 // basic_string using polymorphic allocator in namespace pmr
anatofuz
parents:
diff changeset
22 template <class charT, class traits = char_traits<charT>>
anatofuz
parents:
diff changeset
23 using basic_string =
anatofuz
parents:
diff changeset
24 std::basic_string<charT, traits, polymorphic_allocator<charT>>;
anatofuz
parents:
diff changeset
25
anatofuz
parents:
diff changeset
26 // basic_string typedef names using polymorphic allocator in namespace
anatofuz
parents:
diff changeset
27 // std::experimental::pmr
anatofuz
parents:
diff changeset
28 typedef basic_string<char> string;
anatofuz
parents:
diff changeset
29 typedef basic_string<char16_t> u16string;
anatofuz
parents:
diff changeset
30 typedef basic_string<char32_t> u32string;
anatofuz
parents:
diff changeset
31 typedef basic_string<wchar_t> wstring;
anatofuz
parents:
diff changeset
32
anatofuz
parents:
diff changeset
33 } // namespace pmr
anatofuz
parents:
diff changeset
34 } // namespace fundamentals_v1
anatofuz
parents:
diff changeset
35 } // namespace experimental
anatofuz
parents:
diff changeset
36 } // namespace std
anatofuz
parents:
diff changeset
37
anatofuz
parents:
diff changeset
38 */
anatofuz
parents:
diff changeset
39
anatofuz
parents:
diff changeset
40 #include <experimental/__config>
anatofuz
parents:
diff changeset
41 #include <string>
anatofuz
parents:
diff changeset
42 #include <experimental/memory_resource>
anatofuz
parents:
diff changeset
43
anatofuz
parents:
diff changeset
44 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
anatofuz
parents:
diff changeset
45 #pragma GCC system_header
anatofuz
parents:
diff changeset
46 #endif
anatofuz
parents:
diff changeset
47
anatofuz
parents:
diff changeset
48 _LIBCPP_BEGIN_NAMESPACE_LFTS_PMR
anatofuz
parents:
diff changeset
49
anatofuz
parents:
diff changeset
50 template <class _CharT, class _Traits = char_traits<_CharT>>
anatofuz
parents:
diff changeset
51 using basic_string =
anatofuz
parents:
diff changeset
52 _VSTD::basic_string<_CharT, _Traits, polymorphic_allocator<_CharT>>;
anatofuz
parents:
diff changeset
53
anatofuz
parents:
diff changeset
54 typedef basic_string<char> string;
anatofuz
parents:
diff changeset
55 typedef basic_string<char16_t> u16string;
anatofuz
parents:
diff changeset
56 typedef basic_string<char32_t> u32string;
anatofuz
parents:
diff changeset
57 typedef basic_string<wchar_t> wstring;
anatofuz
parents:
diff changeset
58
anatofuz
parents:
diff changeset
59 _LIBCPP_END_NAMESPACE_LFTS_PMR
anatofuz
parents:
diff changeset
60
anatofuz
parents:
diff changeset
61 #endif /* _LIBCPP_EXPERIMENTAL_STRING */