506 _GLIBCXX_BEGIN_NAMESPACE_VERSION
510 template<
class _Key,
class _Tp,
class _HashFn,
class _EqKey,
class _Alloc>
511 class insert_iterator<__gnu_cxx::hash_map<_Key, _Tp, _HashFn,
515 typedef __gnu_cxx::hash_map<_Key, _Tp, _HashFn, _EqKey, _Alloc>
517 _Container* container;
520 typedef _Container container_type;
521 typedef output_iterator_tag iterator_category;
522 typedef void value_type;
523 typedef void difference_type;
524 typedef void pointer;
525 typedef void reference;
527 insert_iterator(_Container& __x)
530 insert_iterator(_Container& __x,
typename _Container::iterator)
533 insert_iterator<_Container>&
534 operator=(
const typename _Container::value_type& __value)
536 container->insert(__value);
540 insert_iterator<_Container>&
544 insert_iterator<_Container>&
545 operator++() {
return *
this; }
547 insert_iterator<_Container>&
552 template<
class _Key,
class _Tp,
class _HashFn,
class _EqKey,
class _Alloc>
553 class insert_iterator<__gnu_cxx::hash_multimap<_Key, _Tp, _HashFn,
557 typedef __gnu_cxx::hash_multimap<_Key, _Tp, _HashFn, _EqKey, _Alloc>
559 _Container* container;
560 typename _Container::iterator iter;
563 typedef _Container container_type;
564 typedef output_iterator_tag iterator_category;
565 typedef void value_type;
566 typedef void difference_type;
567 typedef void pointer;
568 typedef void reference;
570 insert_iterator(_Container& __x)
573 insert_iterator(_Container& __x,
typename _Container::iterator)
576 insert_iterator<_Container>&
577 operator=(
const typename _Container::value_type& __value)
579 container->insert(__value);
583 insert_iterator<_Container>&
587 insert_iterator<_Container>&
591 insert_iterator<_Container>&
596 _GLIBCXX_END_NAMESPACE_VERSION