@@ -472,7 +472,7 @@ public:
472
472
const hasher& __hf,
473
473
const key_equal& __eql,
474
474
const allocator_type& __a);
475
- _LIBCPP_HIDE_FROM_ABI hash_map (const hash_map& __u);
475
+ _LIBCPP_HIDE_FROM_ABI hash_map (const hash_map& __u) = default ;
476
476
477
477
_LIBCPP_HIDE_FROM_ABI allocator_type get_allocator () const { return allocator_type (__table_.__node_alloc ()); }
478
478
@@ -569,12 +569,6 @@ hash_map<_Key, _Tp, _Hash, _Pred, _Alloc>::hash_map(
569
569
insert (__first, __last);
570
570
}
571
571
572
- template <class _Key , class _Tp , class _Hash , class _Pred , class _Alloc >
573
- hash_map<_Key, _Tp, _Hash, _Pred, _Alloc>::hash_map(const hash_map& __u) : __table_(__u.__table_) {
574
- __table_.__rehash_unique (__u.bucket_count ());
575
- insert (__u.begin (), __u.end ());
576
- }
577
-
578
572
template <class _Key , class _Tp , class _Hash , class _Pred , class _Alloc >
579
573
typename hash_map<_Key, _Tp, _Hash, _Pred, _Alloc>::__node_holder
580
574
hash_map<_Key, _Tp, _Hash, _Pred, _Alloc>::__construct_node(const key_type& __k) {
@@ -696,7 +690,7 @@ public:
696
690
const hasher& __hf,
697
691
const key_equal& __eql,
698
692
const allocator_type& __a);
699
- _LIBCPP_HIDE_FROM_ABI hash_multimap (const hash_multimap& __u);
693
+ _LIBCPP_HIDE_FROM_ABI hash_multimap (const hash_multimap& __u) = default ;
700
694
701
695
_LIBCPP_HIDE_FROM_ABI allocator_type get_allocator () const { return allocator_type (__table_.__node_alloc ()); }
702
696
@@ -786,9 +780,6 @@ hash_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>::hash_multimap(
786
780
insert (__first, __last);
787
781
}
788
782
789
- template <class _Key , class _Tp , class _Hash , class _Pred , class _Alloc >
790
- hash_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>::hash_multimap(const hash_multimap& __u) : __table_(__u.__table_) {}
791
-
792
783
template <class _Key , class _Tp , class _Hash , class _Pred , class _Alloc >
793
784
template <class _InputIterator >
794
785
inline void hash_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>::insert(_InputIterator __first, _InputIterator __last) {
0 commit comments