xref: /openbsd-src/gnu/llvm/libcxx/include/experimental/map (revision 4bdff4bed0e3d54e55670334c7d0077db4170f86)
146035553Spatrick// -*- C++ -*-
2*4bdff4beSrobert//===----------------------------------------------------------------------===//
346035553Spatrick//
446035553Spatrick// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
546035553Spatrick// See https://llvm.org/LICENSE.txt for license information.
646035553Spatrick// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
746035553Spatrick//
846035553Spatrick//===----------------------------------------------------------------------===//
946035553Spatrick
1046035553Spatrick#ifndef _LIBCPP_EXPERIMENTAL_MAP
1146035553Spatrick#define _LIBCPP_EXPERIMENTAL_MAP
12*4bdff4beSrobert
1346035553Spatrick/*
1446035553Spatrick    experimental/map synopsis
1546035553Spatrick
1646035553Spatrick// C++1z
1746035553Spatricknamespace std {
1846035553Spatricknamespace experimental {
1946035553Spatrickinline namespace fundamentals_v1 {
2046035553Spatricknamespace pmr {
2146035553Spatrick
2246035553Spatrick  template <class Key, class T, class Compare = less<Key>>
2346035553Spatrick  using map = std::map<Key, T, Compare,
2446035553Spatrick                       polymorphic_allocator<pair<const Key,T>>>;
2546035553Spatrick
2646035553Spatrick  template <class Key, class T, class Compare = less<Key>>
2746035553Spatrick  using multimap = std::multimap<Key, T, Compare,
2846035553Spatrick                                 polymorphic_allocator<pair<const Key,T>>>;
2946035553Spatrick
3046035553Spatrick} // namespace pmr
3146035553Spatrick} // namespace fundamentals_v1
3246035553Spatrick} // namespace experimental
3346035553Spatrick} // namespace std
3446035553Spatrick
3546035553Spatrick */
3646035553Spatrick
37*4bdff4beSrobert#include <__assert> // all public C++ headers provide the assertion handler
3846035553Spatrick#include <experimental/__config>
3946035553Spatrick#include <experimental/memory_resource>
40*4bdff4beSrobert#include <map>
4146035553Spatrick
4246035553Spatrick#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
4346035553Spatrick#  pragma GCC system_header
4446035553Spatrick#endif
4546035553Spatrick
4646035553Spatrick_LIBCPP_BEGIN_NAMESPACE_LFTS_PMR
4746035553Spatrick
48*4bdff4beSrobert#ifndef _LIBCPP_CXX03_LANG
49*4bdff4beSrobert
5046035553Spatricktemplate <class _Key, class _Value, class  _Compare = less<_Key>>
5146035553Spatrickusing map = _VSTD::map<_Key, _Value, _Compare,
5246035553Spatrick                        polymorphic_allocator<pair<const _Key, _Value>>>;
5346035553Spatrick
5446035553Spatricktemplate <class _Key, class _Value, class  _Compare = less<_Key>>
5546035553Spatrickusing multimap = _VSTD::multimap<_Key, _Value, _Compare,
5646035553Spatrick                        polymorphic_allocator<pair<const _Key, _Value>>>;
5746035553Spatrick
58*4bdff4beSrobert#endif // _LIBCPP_CXX03_LANG
59*4bdff4beSrobert
6046035553Spatrick_LIBCPP_END_NAMESPACE_LFTS_PMR
6146035553Spatrick
6246035553Spatrick#endif /* _LIBCPP_EXPERIMENTAL_MAP */
63