2 //===------------------------- unordered_map ------------------------------===//
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_MAP
11 #define _LIBCPP_EXPERIMENTAL_UNORDERED_MAP
13 experimental/unordered_map synopsis
17 namespace experimental {
18 inline namespace fundamentals_v1 {
21 template <class Key, class T,
22 class Hash = hash<Key>,
23 class Pred = equal_to<Key>>
25 std::unordered_map<Key, T, Hash, Pred,
26 polymorphic_allocator<pair<const Key,T>>>;
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>>>;
36 } // namespace fundamentals_v1
37 } // namespace experimental
42 #include <experimental/__config>
43 #include <unordered_map>
44 #include <experimental/memory_resource>
46 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
47 #pragma GCC system_header
50 _LIBCPP_BEGIN_NAMESPACE_LFTS_PMR
52 template <class _Key, class _Value,
53 class _Hash = hash<_Key>, class _Pred = equal_to<_Key>>
54 using unordered_map = _VSTD::unordered_map<_Key, _Value, _Hash, _Pred,
55 polymorphic_allocator<pair<const _Key, _Value>>>;
57 template <class _Key, class _Value,
58 class _Hash = hash<_Key>, class _Pred = equal_to<_Key>>
59 using unordered_multimap = _VSTD::unordered_multimap<_Key, _Value, _Hash, _Pred,
60 polymorphic_allocator<pair<const _Key, _Value>>>;
62 _LIBCPP_END_NAMESPACE_LFTS_PMR
64 #endif /* _LIBCPP_EXPERIMENTAL_UNORDERED_MAP */