1// -*- C++ -*- 2//===----------------------------- 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_MAP 11#define _LIBCPP_EXPERIMENTAL_MAP 12/* 13 experimental/map synopsis 14 15// C++1z 16namespace std { 17namespace experimental { 18inline namespace fundamentals_v1 { 19namespace pmr { 20 21 template <class Key, class T, class Compare = less<Key>> 22 using map = std::map<Key, T, Compare, 23 polymorphic_allocator<pair<const Key,T>>>; 24 25 template <class Key, class T, class Compare = less<Key>> 26 using multimap = std::multimap<Key, T, Compare, 27 polymorphic_allocator<pair<const Key,T>>>; 28 29} // namespace pmr 30} // namespace fundamentals_v1 31} // namespace experimental 32} // namespace std 33 34 */ 35 36#include <experimental/__config> 37#include <map> 38#include <experimental/memory_resource> 39 40#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 41#pragma GCC system_header 42#endif 43 44_LIBCPP_BEGIN_NAMESPACE_LFTS_PMR 45 46template <class _Key, class _Value, class _Compare = less<_Key>> 47using map = _VSTD::map<_Key, _Value, _Compare, 48 polymorphic_allocator<pair<const _Key, _Value>>>; 49 50template <class _Key, class _Value, class _Compare = less<_Key>> 51using multimap = _VSTD::multimap<_Key, _Value, _Compare, 52 polymorphic_allocator<pair<const _Key, _Value>>>; 53 54_LIBCPP_END_NAMESPACE_LFTS_PMR 55 56#endif /* _LIBCPP_EXPERIMENTAL_MAP */ 57