2 //===----------------------------- 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_MAP
11 #define _LIBCPP_EXPERIMENTAL_MAP
13 experimental/map synopsis
17 namespace experimental {
18 inline namespace fundamentals_v1 {
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>>>;
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>>>;
30 } // namespace fundamentals_v1
31 } // namespace experimental
36 #include <experimental/__config>
38 #include <experimental/memory_resource>
40 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
41 #pragma GCC system_header
44 _LIBCPP_BEGIN_NAMESPACE_LFTS_PMR
46 template <class _Key, class _Value, class _Compare = less<_Key>>
47 using map = _VSTD::map<_Key, _Value, _Compare,
48 polymorphic_allocator<pair<const _Key, _Value>>>;
50 template <class _Key, class _Value, class _Compare = less<_Key>>
51 using multimap = _VSTD::multimap<_Key, _Value, _Compare,
52 polymorphic_allocator<pair<const _Key, _Value>>>;
54 _LIBCPP_END_NAMESPACE_LFTS_PMR
56 #endif /* _LIBCPP_EXPERIMENTAL_MAP */