Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
string66 linesDownload Raw Back to experimental
1// -*- C++ -*-2//===--------------------------- string ----------------------------------===//3//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-exception7//8//===----------------------------------------------------------------------===//9 10#ifndef _LIBCUDACXX_EXPERIMENTAL_STRING11#define _LIBCUDACXX_EXPERIMENTAL_STRING12/*13    experimental/string synopsis14 15// C++1z16namespace std {17namespace experimental {18inline namespace fundamentals_v1 {19namespace pmr {20 21  // basic_string using polymorphic allocator in namespace pmr22  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 namespace27  // std::experimental::pmr28  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 pmr34} // namespace fundamentals_v135} // namespace experimental36} // namespace std37 38 */39 40#include <experimental/__config>41#include <string>42#include <experimental/memory_resource>43 44#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)45#  pragma GCC system_header46#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)47#  pragma clang system_header48#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC)49#  pragma system_header50#endif // no system header51 52_LIBCUDACXX_BEGIN_NAMESPACE_LFTS_PMR53 54template <class _CharT, class _Traits = char_traits<_CharT>>55using basic_string =56    _CUDA_VSTD::basic_string<_CharT, _Traits, polymorphic_allocator<_CharT>>;57 58typedef basic_string<char> string;59typedef basic_string<char16_t> u16string;60typedef basic_string<char32_t> u32string;61typedef basic_string<wchar_t> wstring;62 63_LIBCUDACXX_END_NAMESPACE_LFTS_PMR64 65#endif /* _LIBCUDACXX_EXPERIMENTAL_STRING */66 
codekingpro/portable-devtools · Team Ai