.TH "__gnu_debug::_Safe_unordered_container< _Container >" 3 "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME __gnu_debug::_Safe_unordered_container< _Container > \- Base class for constructing a \fIsafe\fP unordered container type that tracks iterators that reference it\&. .SH SYNOPSIS .br .PP .PP \fR#include \fP .PP Inherits \fB__gnu_debug::_Safe_unordered_container_base\fP\&. .PP Inherited by \fB__gnu_debug::_Safe_container< unordered_map, _Alloc, __gnu_debug::_Safe_unordered_container >\fP, \fB__gnu_debug::_Safe_container< unordered_multimap, _Alloc, __gnu_debug::_Safe_unordered_container >\fP, \fB__gnu_debug::_Safe_container< unordered_set, _Alloc, __gnu_debug::_Safe_unordered_container >\fP, and \fB__gnu_debug::_Safe_container< unordered_multiset, _Alloc, __gnu_debug::_Safe_unordered_container >\fP\&. .SS "Public Attributes" .in +1c .ti -1c .RI "\fB_Safe_iterator_base\fP * \fB_M_const_iterators\fP" .br .RI "The list of constant iterators that reference this container\&. " .ti -1c .RI "\fB_Safe_iterator_base\fP * \fB_M_const_local_iterators\fP" .br .RI "The list of constant local iterators that reference this container\&. " .ti -1c .RI "\fB_Safe_iterator_base\fP * \fB_M_iterators\fP" .br .RI "The list of mutable iterators that reference this container\&. " .ti -1c .RI "\fB_Safe_iterator_base\fP * \fB_M_local_iterators\fP" .br .RI "The list of mutable local iterators that reference this container\&. " .ti -1c .RI "unsigned int \fB_M_version\fP" .br .RI "The container version number\&. This number may never be 0\&. " .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "void \fB_M_detach_all\fP () const" .br .ti -1c .RI "void \fB_M_detach_singular\fP () const" .br .ti -1c .RI "__gnu_cxx::__mutex & \fB_M_get_mutex\fP () const noexcept" .br .ti -1c .RI "template void \fB_M_invalidate\fP (_VictimIt __victim)" .br .ti -1c .RI "template void \fB_M_invalidate\fP (_VictimIt __victim, const \fB__gnu_cxx::__scoped_lock\fP &__lock)" .br .ti -1c .RI "constexpr void \fB_M_invalidate_all\fP () const" .br .ti -1c .RI "void \fB_M_invalidate_all\fP ()" .br .ti -1c .RI "template void \fB_M_invalidate_all_if\fP (_Predicate __pred)" .br .ti -1c .RI "void \fB_M_revalidate_singular\fP () const" .br .ti -1c .RI "void \fB_M_swap\fP (const \fB_Safe_sequence_base\fP &__x) const noexcept" .br .ti -1c .RI "void \fB_M_swap\fP (const _Safe_unordered_container_base &__x) const noexcept" .br .in -1c .SH "Detailed Description" .PP .SS "template .br class __gnu_debug::_Safe_unordered_container< _Container >"Base class for constructing a \fIsafe\fP unordered container type that tracks iterators that reference it\&. The class template _Safe_unordered_container simplifies the construction of \fIsafe\fP unordered containers that track the iterators that reference the container, so that the iterators are notified of changes in the container that may affect their operation, e\&.g\&., if the container invalidates its iterators or is destructed\&. This class template may only be used by deriving from it and passing the name of the derived class as its template parameter via the curiously recurring template pattern\&. The derived class must have \fRiterator\fP and \fRconst_iterator\fP types that are instantiations of class template _Safe_iterator for this container and \fRlocal_iterator\fP and \fRconst_local_iterator\fP types that are instantiations of class template _Safe_local_iterator for this container\&. Iterators will then be tracked automatically\&. .SH "Member Function Documentation" .PP .SS "void __gnu_debug::_Safe_unordered_container_base::_M_detach_all () const\fR [protected]\fP, \fR [inherited]\fP" Detach all iterators, leaving them singular\&. .PP Referenced by \fB~_Safe_unordered_container_base()\fP\&. .SS "void __gnu_debug::_Safe_sequence_base::_M_detach_singular () const\fR [protected]\fP, \fR [inherited]\fP" Detach all singular iterators\&. .PP \fBPostcondition\fP .RS 4 for all iterators i attached to this sequence, i->_M_version == _M_version\&. .RE .PP .SS "__gnu_cxx::__mutex & __gnu_debug::_Safe_sequence_base::_M_get_mutex () const\fR [protected]\fP, \fR [noexcept]\fP, \fR [inherited]\fP" For use in _Safe_sequence\&. .PP Referenced by \fB__gnu_debug::_Safe_sequence< _Sequence >::_M_transfer_from_if()\fP\&. .SS "void __gnu_debug::_Safe_sequence_base::_M_invalidate_all () const\fR [inline]\fP, \fR [constexpr]\fP, \fR [protected]\fP, \fR [inherited]\fP" Invalidates all iterators\&. .PP References \fB_M_invalidate_all()\fP, and \fB_M_version\fP\&. .PP Referenced by \fB_M_invalidate_all()\fP\&. .SS "void __gnu_debug::_Safe_sequence_base::_M_revalidate_singular () const\fR [protected]\fP, \fR [inherited]\fP" Revalidates all attached singular iterators\&. This method may be used to validate iterators that were invalidated before (but for some reason, such as an exception, need to become valid again)\&. .SS "void __gnu_debug::_Safe_sequence_base::_M_swap (const _Safe_sequence_base & __x) const\fR [protected]\fP, \fR [noexcept]\fP, \fR [inherited]\fP" Swap this sequence with the given sequence\&. This operation also swaps ownership of the iterators, so that when the operation is complete all iterators that originally referenced one container now reference the other container\&. .SS "void __gnu_debug::_Safe_unordered_container_base::_M_swap (const _Safe_unordered_container_base & __x) const\fR [protected]\fP, \fR [noexcept]\fP, \fR [inherited]\fP" Swap this container with the given container\&. This operation also swaps ownership of the iterators, so that when the operation is complete all iterators that originally referenced one container now reference the other container\&. .SH "Member Data Documentation" .PP .SS "\fB_Safe_iterator_base\fP* __gnu_debug::_Safe_sequence_base::_M_const_iterators\fR [mutable]\fP, \fR [inherited]\fP" .PP The list of constant iterators that reference this container\&. .PP Referenced by \fB__gnu_debug::_Safe_sequence< _Sequence >::_M_transfer_from_if()\fP\&. .SS "\fB_Safe_iterator_base\fP* __gnu_debug::_Safe_unordered_container_base::_M_const_local_iterators\fR [mutable]\fP, \fR [inherited]\fP" .PP The list of constant local iterators that reference this container\&. .SS "\fB_Safe_iterator_base\fP* __gnu_debug::_Safe_sequence_base::_M_iterators\fR [mutable]\fP, \fR [inherited]\fP" .PP The list of mutable iterators that reference this container\&. .PP Referenced by \fB__gnu_debug::_Safe_sequence< _Sequence >::_M_transfer_from_if()\fP\&. .SS "\fB_Safe_iterator_base\fP* __gnu_debug::_Safe_unordered_container_base::_M_local_iterators\fR [mutable]\fP, \fR [inherited]\fP" .PP The list of mutable local iterators that reference this container\&. .SS "unsigned int __gnu_debug::_Safe_sequence_base::_M_version\fR [mutable]\fP, \fR [inherited]\fP" .PP The container version number\&. This number may never be 0\&. .PP Referenced by \fB_M_invalidate_all()\fP, \fB__gnu_debug::_Safe_sequence< _Sequence >::_M_transfer_from_if()\fP, \fB__gnu_debug::_Safe_iterator< _Base_iterator, map >::operator=()\fP, \fB__gnu_debug::_Safe_iterator< _Base_iterator, map >::operator=()\fP, \fB__gnu_debug::_Safe_local_iterator< _OtherIterator, _UContainer >::operator=()\fP, and \fB__gnu_debug::_Safe_local_iterator< _OtherIterator, _UContainer >::operator=()\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.