2 //===----------------------------- map ------------------------------------===//
4 // The LLVM Compiler Infrastructure
6 // This file is dual licensed under the MIT and the University of Illinois Open
7 // Source Licenses. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
11 #ifndef _LIBCPP_EXPERIMENTAL_MAP
12 #define _LIBCPP_EXPERIMENTAL_MAP
14 experimental/map synopsis
18 namespace experimental {
19 inline namespace fundamentals_v1 {
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>>>;
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>>>;
31 } // namespace fundamentals_v1
32 } // namespace experimental
37 #include <experimental/__config>
39 #include <experimental/memory_resource>
41 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
42 #pragma GCC system_header
45 _LIBCPP_BEGIN_NAMESPACE_LFTS_PMR
47 template <class _Key, class _Value, class _Compare = less<_Key>>
48 using map = _VSTD::map<_Key, _Value, _Compare,
49 polymorphic_allocator<pair<const _Key, _Value>>>;
51 template <class _Key, class _Value, class _Compare = less<_Key>>
52 using multimap = _VSTD::multimap<_Key, _Value, _Compare,
53 polymorphic_allocator<pair<const _Key, _Value>>>;
55 _LIBCPP_END_NAMESPACE_LFTS_PMR
57 #endif /* _LIBCPP_EXPERIMENTAL_MAP */