2 //===------------------------- unordered_set ------------------------------===//
4 // The LLVM Compiler Infrastructure
6 // This file is dual licensed under the MIT and the University of Illinois Open
7 // Source Licenses. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
11 #ifndef _LIBCPP_EXPERIMENTAL_UNORDERED_SET
12 #define _LIBCPP_EXPERIMENTAL_UNORDERED_SET
14 experimental/unordered_set synopsis
18 namespace experimental {
19 inline namespace fundamentals_v1 {
22 template <class T, class Hash = hash<T>, class Pred = equal_to<T>>
23 using unordered_set = std::unordered_set<T, Hash, Pred,
24 polymorphic_allocator<T>>;
26 template <class T, class Hash = hash<T>, class Pred = equal_to<T>>
27 using unordered_multiset = std::unordered_multiset<T, Hash, Pred,
28 polymorphic_allocator<T>>;
31 } // namespace fundamentals_v1
32 } // namespace experimental
37 #include <experimental/__config>
38 #include <unordered_set>
39 #include <experimental/memory_resource>
41 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
42 #pragma GCC system_header
45 _LIBCPP_BEGIN_NAMESPACE_LFTS_PMR
47 template <class _Value,
48 class _Hash = hash<_Value>, class _Pred = equal_to<_Value>>
49 using unordered_set = _VSTD::unordered_set<_Value, _Hash, _Pred,
50 polymorphic_allocator<_Value>>;
52 template <class _Value,
53 class _Hash = hash<_Value>, class _Pred = equal_to<_Value>>
54 using unordered_multiset = _VSTD::unordered_multiset<_Value, _Hash, _Pred,
55 polymorphic_allocator<_Value>>;
57 _LIBCPP_END_NAMESPACE_LFTS_PMR
59 #endif /* _LIBCPP_EXPERIMENTAL_UNORDERED_SET */