diff --git a/include/ext/hash_map b/include/ext/hash_map index b74540be7..21ce3be8a 100644 --- a/include/ext/hash_map +++ b/include/ext/hash_map @@ -468,6 +468,7 @@ public: // types typedef _Key key_type; typedef _Tp mapped_type; + typedef _Tp data_type; typedef _Hash hasher; typedef _Pred key_equal; typedef _Alloc allocator_type; @@ -551,6 +552,8 @@ public: _LIBCPP_INLINE_VISIBILITY pair insert(const value_type& __x) {return __table_.__insert_unique(__x);} + _LIBCPP_INLINE_VISIBILITY + iterator insert(const_iterator, const value_type& __x) {return insert(__x).first;} template void insert(_InputIterator __first, _InputIterator __last); @@ -744,6 +747,7 @@ public: // types typedef _Key key_type; typedef _Tp mapped_type; + typedef _Tp data_type; typedef _Hash hasher; typedef _Pred key_equal; typedef _Alloc allocator_type; @@ -825,6 +829,8 @@ public: _LIBCPP_INLINE_VISIBILITY iterator insert(const value_type& __x) {return __table_.__insert_multi(__x);} + _LIBCPP_INLINE_VISIBILITY + iterator insert(const_iterator, const value_type& __x) {return insert(__x);} template void insert(_InputIterator __first, _InputIterator __last); diff --git a/include/ext/hash_set b/include/ext/hash_set index e20fd41e6..daad847af 100644 --- a/include/ext/hash_set +++ b/include/ext/hash_set @@ -274,6 +274,8 @@ public: _LIBCPP_INLINE_VISIBILITY pair insert(const value_type& __x) {return __table_.__insert_unique(__x);} + _LIBCPP_INLINE_VISIBILITY + iterator insert(const_iterator, const value_type& __x) {return insert(__x).first;} template void insert(_InputIterator __first, _InputIterator __last); @@ -492,6 +494,8 @@ public: _LIBCPP_INLINE_VISIBILITY iterator insert(const value_type& __x) {return __table_.__insert_multi(__x);} + _LIBCPP_INLINE_VISIBILITY + iterator insert(const_iterator, const value_type& __x) {return insert(__x);} template void insert(_InputIterator __first, _InputIterator __last);