mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-24 14:05:49 -04:00

to reflect the new license. These used slightly different spellings that defeated my regular expressions. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351648
62 lines
1.7 KiB
C++
62 lines
1.7 KiB
C++
// -*- C++ -*-
|
|
//===--------------------------- string ----------------------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef _LIBCPP_EXPERIMENTAL_STRING
|
|
#define _LIBCPP_EXPERIMENTAL_STRING
|
|
/*
|
|
experimental/string synopsis
|
|
|
|
// C++1z
|
|
namespace std {
|
|
namespace experimental {
|
|
inline namespace fundamentals_v1 {
|
|
namespace pmr {
|
|
|
|
// basic_string using polymorphic allocator in namespace pmr
|
|
template <class charT, class traits = char_traits<charT>>
|
|
using basic_string =
|
|
std::basic_string<charT, traits, polymorphic_allocator<charT>>;
|
|
|
|
// basic_string typedef names using polymorphic allocator in namespace
|
|
// std::experimental::pmr
|
|
typedef basic_string<char> string;
|
|
typedef basic_string<char16_t> u16string;
|
|
typedef basic_string<char32_t> u32string;
|
|
typedef basic_string<wchar_t> wstring;
|
|
|
|
} // namespace pmr
|
|
} // namespace fundamentals_v1
|
|
} // namespace experimental
|
|
} // namespace std
|
|
|
|
*/
|
|
|
|
#include <experimental/__config>
|
|
#include <string>
|
|
#include <experimental/memory_resource>
|
|
|
|
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
|
#pragma GCC system_header
|
|
#endif
|
|
|
|
_LIBCPP_BEGIN_NAMESPACE_LFTS_PMR
|
|
|
|
template <class _CharT, class _Traits = char_traits<_CharT>>
|
|
using basic_string =
|
|
_VSTD::basic_string<_CharT, _Traits, polymorphic_allocator<_CharT>>;
|
|
|
|
typedef basic_string<char> string;
|
|
typedef basic_string<char16_t> u16string;
|
|
typedef basic_string<char32_t> u32string;
|
|
typedef basic_string<wchar_t> wstring;
|
|
|
|
_LIBCPP_END_NAMESPACE_LFTS_PMR
|
|
|
|
#endif /* _LIBCPP_EXPERIMENTAL_STRING */
|