Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
unordered_map69 linesDownload Raw Back to experimental
1// -*- C++ -*-2//===------------------------- unordered_map ------------------------------===//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_UNORDERED_MAP11#define _LIBCUDACXX_EXPERIMENTAL_UNORDERED_MAP12/*13    experimental/unordered_map synopsis14 15// C++1z16namespace std {17namespace experimental {18inline namespace fundamentals_v1 {19namespace pmr {20 21  template <class Key, class T,22            class Hash = hash<Key>,23            class Pred = equal_to<Key>>24  using unordered_map =25    std::unordered_map<Key, T, Hash, Pred,26                       polymorphic_allocator<pair<const Key,T>>>;27 28  template <class Key, class T,29            class Hash = hash<Key>,30            class Pred = equal_to<Key>>31  using unordered_multimap =32    std::unordered_multimap<Key, T, Hash, Pred,33                            polymorphic_allocator<pair<const Key,T>>>;34 35} // namespace pmr36} // namespace fundamentals_v137} // namespace experimental38} // namespace std39 40 */41 42#include <experimental/__config>43#include <unordered_map>44#include <experimental/memory_resource>45 46#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)47#  pragma GCC system_header48#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)49#  pragma clang system_header50#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC)51#  pragma system_header52#endif // no system header53 54_LIBCUDACXX_BEGIN_NAMESPACE_LFTS_PMR55 56template <class _Key, class _Value,57          class _Hash = hash<_Key>, class _Pred = equal_to<_Key>>58using unordered_map = _CUDA_VSTD::unordered_map<_Key, _Value, _Hash, _Pred,59                        polymorphic_allocator<pair<const _Key, _Value>>>;60 61template <class _Key, class _Value,62          class _Hash = hash<_Key>, class _Pred = equal_to<_Key>>63using unordered_multimap = _CUDA_VSTD::unordered_multimap<_Key, _Value, _Hash, _Pred,64                        polymorphic_allocator<pair<const _Key, _Value>>>;65 66_LIBCUDACXX_END_NAMESPACE_LFTS_PMR67 68#endif /* _LIBCUDACXX_EXPERIMENTAL_UNORDERED_MAP */69 
codekingpro/portable-devtools · Team Ai