@@ -582,6 +582,7 @@ erase_if(multimap<Key, T, Compare, Allocator>& c, Predicate pred); // C++20
582582# include < __functional/binary_function.h>
583583# include < __functional/is_transparent.h>
584584# include < __functional/operations.h>
585+ # include < __fwd/map.h>
585586# include < __iterator/erase_if_container.h>
586587# include < __iterator/iterator_traits.h>
587588# include < __iterator/ranges_iterator_traits.h>
@@ -756,10 +757,6 @@ public:
756757 }
757758};
758759
759- template <class _Key , class _Tp , class _Compare , class _Allocator >
760- class map ;
761- template <class _Key , class _Tp , class _Compare , class _Allocator >
762- class multimap ;
763760template <class _TreeIterator >
764761class __map_const_iterator ;
765762
@@ -971,7 +968,7 @@ public:
971968 friend class _LIBCPP_TEMPLATE_VIS __tree_const_iterator;
972969};
973970
974- template <class _Key , class _Tp , class _Compare = less<_Key> , class _Allocator = allocator<pair< const _Key, _Tp> > >
971+ template <class _Key , class _Tp , class _Compare , class _Allocator >
975972class _LIBCPP_TEMPLATE_VIS map {
976973public:
977974 // types:
@@ -1656,7 +1653,7 @@ struct __container_traits<map<_Key, _Tp, _Compare, _Allocator> > {
16561653 static _LIBCPP_CONSTEXPR const bool __emplacement_has_strong_exception_safety_guarantee = true ;
16571654};
16581655
1659- template <class _Key , class _Tp , class _Compare = less<_Key> , class _Allocator = allocator<pair< const _Key, _Tp> > >
1656+ template <class _Key , class _Tp , class _Compare , class _Allocator >
16601657class _LIBCPP_TEMPLATE_VIS multimap {
16611658public:
16621659 // types:
0 commit comments