codekingpro/portable-devtools
114k
1// -*- C++ -*-2//===------------------------- unordered_set ------------------------------===//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_SET11#define _LIBCUDACXX_EXPERIMENTAL_UNORDERED_SET12/*13 experimental/unordered_set synopsis14 15// C++1z16namespace std {17namespace experimental {18inline namespace fundamentals_v1 {19namespace pmr {20 21 template <class T, class Hash = hash<T>, class Pred = equal_to<T>>22 using unordered_set = std::unordered_set<T, Hash, Pred,23 polymorphic_allocator<T>>;24 25 template <class T, class Hash = hash<T>, class Pred = equal_to<T>>26 using unordered_multiset = std::unordered_multiset<T, Hash, Pred,27 polymorphic_allocator<T>>;28 29} // namespace pmr30} // namespace fundamentals_v131} // namespace experimental32} // namespace std33 34 */35 36#include <experimental/__config>37#include <unordered_set>38#include <experimental/memory_resource>39 40#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)41# pragma GCC system_header42#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)43# pragma clang system_header44#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC)45# pragma system_header46#endif // no system header47 48_LIBCUDACXX_BEGIN_NAMESPACE_LFTS_PMR49 50template <class _Value,51 class _Hash = hash<_Value>, class _Pred = equal_to<_Value>>52using unordered_set = _CUDA_VSTD::unordered_set<_Value, _Hash, _Pred,53 polymorphic_allocator<_Value>>;54 55template <class _Value,56 class _Hash = hash<_Value>, class _Pred = equal_to<_Value>>57using unordered_multiset = _CUDA_VSTD::unordered_multiset<_Value, _Hash, _Pred,58 polymorphic_allocator<_Value>>;59 60_LIBCUDACXX_END_NAMESPACE_LFTS_PMR61 62#endif /* _LIBCUDACXX_EXPERIMENTAL_UNORDERED_SET */63 