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