Home | History | Annotate | Line # | Download | only in experimental
string revision 1.1
      1  1.1  joerg // -*- C++ -*-
      2  1.1  joerg //===--------------------------- string ----------------------------------===//
      3  1.1  joerg //
      4  1.1  joerg // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
      5  1.1  joerg // See https://llvm.org/LICENSE.txt for license information.
      6  1.1  joerg // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
      7  1.1  joerg //
      8  1.1  joerg //===----------------------------------------------------------------------===//
      9  1.1  joerg 
     10  1.1  joerg #ifndef _LIBCPP_EXPERIMENTAL_STRING
     11  1.1  joerg #define _LIBCPP_EXPERIMENTAL_STRING
     12  1.1  joerg /*
     13  1.1  joerg     experimental/string synopsis
     14  1.1  joerg 
     15  1.1  joerg // C++1z
     16  1.1  joerg namespace std {
     17  1.1  joerg namespace experimental {
     18  1.1  joerg inline namespace fundamentals_v1 {
     19  1.1  joerg namespace pmr {
     20  1.1  joerg 
     21  1.1  joerg   // basic_string using polymorphic allocator in namespace pmr
     22  1.1  joerg   template <class charT, class traits = char_traits<charT>>
     23  1.1  joerg    using basic_string =
     24  1.1  joerg      std::basic_string<charT, traits, polymorphic_allocator<charT>>;
     25  1.1  joerg 
     26  1.1  joerg   // basic_string typedef names using polymorphic allocator in namespace
     27  1.1  joerg   // std::experimental::pmr
     28  1.1  joerg   typedef basic_string<char> string;
     29  1.1  joerg   typedef basic_string<char16_t> u16string;
     30  1.1  joerg   typedef basic_string<char32_t> u32string;
     31  1.1  joerg   typedef basic_string<wchar_t> wstring;
     32  1.1  joerg 
     33  1.1  joerg } // namespace pmr
     34  1.1  joerg } // namespace fundamentals_v1
     35  1.1  joerg } // namespace experimental
     36  1.1  joerg } // namespace std
     37  1.1  joerg 
     38  1.1  joerg  */
     39  1.1  joerg 
     40  1.1  joerg #include <experimental/__config>
     41  1.1  joerg #include <string>
     42  1.1  joerg #include <experimental/memory_resource>
     43  1.1  joerg 
     44  1.1  joerg #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
     45  1.1  joerg #pragma GCC system_header
     46  1.1  joerg #endif
     47  1.1  joerg 
     48  1.1  joerg _LIBCPP_BEGIN_NAMESPACE_LFTS_PMR
     49  1.1  joerg 
     50  1.1  joerg template <class _CharT, class _Traits = char_traits<_CharT>>
     51  1.1  joerg using basic_string =
     52  1.1  joerg     _VSTD::basic_string<_CharT, _Traits, polymorphic_allocator<_CharT>>;
     53  1.1  joerg 
     54  1.1  joerg typedef basic_string<char> string;
     55  1.1  joerg typedef basic_string<char16_t> u16string;
     56  1.1  joerg typedef basic_string<char32_t> u32string;
     57  1.1  joerg typedef basic_string<wchar_t> wstring;
     58  1.1  joerg 
     59  1.1  joerg _LIBCPP_END_NAMESPACE_LFTS_PMR
     60  1.1  joerg 
     61  1.1  joerg #endif /* _LIBCPP_EXPERIMENTAL_STRING */
     62