30 #ifndef _GLIBCXX_DEBUG_SAFE_SEQUENCE_H
31 #define _GLIBCXX_DEBUG_SAFE_SEQUENCE_H 1
40 template<
typename _Iterator,
typename _Sequence>
47 template<
typename _Type>
56 operator()(
const _Type& __x)
const
57 {
return __value != __x; }
62 template <
typename _Type>
68 explicit _Equal_to(
const _Type& __v) : __value(__v) { }
71 operator()(
const _Type& __x)
const
72 {
return __value == __x; }
77 template<
typename _Iterator>
80 typedef typename std::iterator_traits<_Iterator>::difference_type
88 : _M_base(__base), _M_n(__n) { }
91 operator()(
const _Iterator& __x)
const
92 {
return __x - _M_base >= _M_n; }
111 template<
typename _Sequence>
119 template<
typename _Predicate>
127 template<
typename _Predicate>
_Siter_base< _Iterator >::iterator_type __base(_Iterator __it)
void _M_invalidate_if(_Predicate __pred)
void _M_transfer_from_if(_Safe_sequence &__from, _Predicate __pred)
Base class that supports tracking of iterators that reference a sequence.
Base class for constructing a safe sequence type that tracks iterators that reference it...