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-exception 7// 8//===----------------------------------------------------------------------===// 9 10#ifndef _LIBCPP_EXPERIMENTAL_UNORDERED_MAP 11#define _LIBCPP_EXPERIMENTAL_UNORDERED_MAP 12/* 13 experimental/unordered_map synopsis 14 15// C++1z 16namespace 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 pmr 36} // namespace fundamentals_v1 37} // namespace experimental 38} // namespace std 39 40 */ 41 42#include <experimental/__config> 43#include <unordered_map> 44#include <experimental/memory_resource> 45 46#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 47#pragma GCC system_header 48#endif 49 50_LIBCPP_BEGIN_NAMESPACE_LFTS_PMR 51 52template <class _Key, class _Value, 53 class _Hash = hash<_Key>, class _Pred = equal_to<_Key>> 54using unordered_map = _VSTD::unordered_map<_Key, _Value, _Hash, _Pred, 55 polymorphic_allocator<pair<const _Key, _Value>>>; 56 57template <class _Key, class _Value, 58 class _Hash = hash<_Key>, class _Pred = equal_to<_Key>> 59using unordered_multimap = _VSTD::unordered_multimap<_Key, _Value, _Hash, _Pred, 60 polymorphic_allocator<pair<const _Key, _Value>>>; 61 62_LIBCPP_END_NAMESPACE_LFTS_PMR 63 64#endif /* _LIBCPP_EXPERIMENTAL_UNORDERED_MAP */ 65