29 #ifndef _GLIBCXX_DEBUG_SAFE_SEQUENCE_H 30 #define _GLIBCXX_DEBUG_SAFE_SEQUENCE_H 1 39 template<
typename _Iterator,
typename _Sequence>
46 template<
typename _Type>
55 operator()(
const _Type& __x)
const 56 {
return __value != __x; }
61 template <
typename _Type>
67 explicit _Equal_to(
const _Type& __v) : __value(__v) { }
70 operator()(
const _Type& __x)
const 71 {
return __value == __x; }
76 template<
typename _Iterator>
79 typedef typename std::iterator_traits<_Iterator>::difference_type
87 : _M_base(__base), _M_n(__n) { }
90 operator()(
const _Iterator& __x)
const 91 {
return __x - _M_base >= _M_n; }
110 template<
typename _Sequence>
118 template<
typename _Predicate>
120 _M_invalidate_if(_Predicate __pred);
126 template<
typename _Predicate>
133 template<
typename _Sequence>
141 typedef typename _Sequence::const_iterator _Const_iterator;
142 typedef typename _Const_iterator::iterator_type _Base_const_iterator;
144 const _Sequence& __seq = *
static_cast<_Sequence*
>(
this);
145 this->_M_invalidate_if(_Not_equal(__seq._M_base().end()));
Like _Safe_sequence but with a special _M_invalidate_all implementation not invalidating past-the-end...
Base class that supports tracking of iterators that reference a sequence.
GNU debug classes for public use.
_Siter_base< _Iterator >::iterator_type __base(_Iterator __it)
Base class for constructing a safe sequence type that tracks iterators that reference it...