|
libstdc++
|
Protected Member Functions | |
| template<typename _VictimIt > | |
| void | _M_invalidate (_VictimIt __victim) |
| template<typename _VictimIt > | |
| void | _M_invalidate (_VictimIt __victim, const __gnu_cxx::__scoped_lock &__lock) |
| void | _M_invalidate_all () |
| template<typename _Predicate > | |
| void | _M_invalidate_all_if (_Predicate __pred) |
Static Protected Member Functions | |
| template<typename _ExtractKey , typename _Source > | |
| static _UContMergeGuard< _Source, _UContInvalidatePred< _ExtractKey, _Source > > | _S_uc_guard (_ExtractKey, _Safe_unordered_container< _Source > &__src) |
| template<typename _ExtractKey , typename _Source > | |
| static _UContMergeGuard< _Source, _UMContInvalidatePred< _ExtractKey, _Source > > | _S_umc_guard (_ExtractKey, _Safe_unordered_container< _Source > &__src) |
Base class for constructing a safe unordered container type that tracks iterators that reference it.
The class template _Safe_unordered_container simplifies the construction of safe 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 iterator and const_iterator types that are instantiations of class template _Safe_iterator for this container and local_iterator and const_local_iterator types that are instantiations of class template _Safe_local_iterator for this container. Iterators will then be tracked automatically.
Definition at line 40 of file safe_unordered_container.h.