Changeset View
Changeset View
Standalone View
Standalone View
include/map
Show First 20 Lines • Show All 480 Lines • ▼ Show 20 Lines | |||||
#include <iterator> | #include <iterator> | ||||
#include <memory> | #include <memory> | ||||
#include <utility> | #include <utility> | ||||
#include <functional> | #include <functional> | ||||
#include <initializer_list> | #include <initializer_list> | ||||
#include <type_traits> | #include <type_traits> | ||||
#include <version> | #include <version> | ||||
#if _LIBCPP_STD_VER > 14 | |||||
#include <__memory_resource_base> | |||||
#endif | |||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) | #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) | ||||
#pragma GCC system_header | #pragma GCC system_header | ||||
#endif | #endif | ||||
_LIBCPP_BEGIN_NAMESPACE_STD | _LIBCPP_BEGIN_NAMESPACE_STD | ||||
template <class _Key, class _CP, class _Compare, | template <class _Key, class _CP, class _Compare, | ||||
bool = is_empty<_Compare>::value && !__libcpp_is_final<_Compare>::value> | bool = is_empty<_Compare>::value && !__libcpp_is_final<_Compare>::value> | ||||
▲ Show 20 Lines • Show All 1,741 Lines • ▼ Show 20 Lines | |||||
template <class _Key, class _Tp, class _Compare, class _Allocator, class _Predicate> | template <class _Key, class _Tp, class _Compare, class _Allocator, class _Predicate> | ||||
inline _LIBCPP_INLINE_VISIBILITY | inline _LIBCPP_INLINE_VISIBILITY | ||||
void erase_if(multimap<_Key, _Tp, _Compare, _Allocator>& __c, _Predicate __pred) | void erase_if(multimap<_Key, _Tp, _Compare, _Allocator>& __c, _Predicate __pred) | ||||
{ __libcpp_erase_if_container(__c, __pred); } | { __libcpp_erase_if_container(__c, __pred); } | ||||
#endif | #endif | ||||
_LIBCPP_END_NAMESPACE_STD | _LIBCPP_END_NAMESPACE_STD | ||||
#if _LIBCPP_STD_VER > 14 | |||||
_LIBCPP_BEGIN_NAMESPACE_STD | |||||
namespace pmr | |||||
{ | |||||
template <class _KeyT, class _ValueT, class _CompareT = _VSTD::less<_KeyT>> | |||||
using map = _VSTD::map<_KeyT, _ValueT, _CompareT, polymorphic_allocator<_VSTD::pair<const _KeyT, _ValueT>>>; | |||||
template <class _KeyT, class _ValueT, class _CompareT = _VSTD::less<_KeyT>> | |||||
using multimap = _VSTD::multimap<_KeyT, _ValueT, _CompareT, polymorphic_allocator<_VSTD::pair<const _KeyT, _ValueT>>>; | |||||
} | |||||
_LIBCPP_END_NAMESPACE_STD | |||||
#endif | |||||
#endif // _LIBCPP_MAP | #endif // _LIBCPP_MAP |