2 //===------------------------- unordered_set ------------------------------===//
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-exception
8 //===----------------------------------------------------------------------===//
10 #ifndef _LIBCPP_EXPERIMENTAL_UNORDERED_SET
11 #define _LIBCPP_EXPERIMENTAL_UNORDERED_SET
13 experimental/unordered_set synopsis
17 namespace experimental {
18 inline namespace fundamentals_v1 {
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>>;
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>>;
30 } // namespace fundamentals_v1
31 } // namespace experimental
36 #include <experimental/__config>
37 #include <unordered_set>
38 #include <experimental/memory_resource>
40 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
41 #pragma GCC system_header
44 _LIBCPP_BEGIN_NAMESPACE_LFTS_PMR
46 template <class _Value,
47 class _Hash = hash<_Value>, class _Pred = equal_to<_Value>>
48 using unordered_set = _VSTD::unordered_set<_Value, _Hash, _Pred,
49 polymorphic_allocator<_Value>>;
51 template <class _Value,
52 class _Hash = hash<_Value>, class _Pred = equal_to<_Value>>
53 using unordered_multiset = _VSTD::unordered_multiset<_Value, _Hash, _Pred,
54 polymorphic_allocator<_Value>>;
56 _LIBCPP_END_NAMESPACE_LFTS_PMR
58 #endif /* _LIBCPP_EXPERIMENTAL_UNORDERED_SET */