Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _Vector_const_iterator& operator--()
- { // predecrement
- #if _ITERATOR_DEBUG_LEVEL != 0
- const auto _Mycont = static_cast<const _Myvec *>(this->_Getcont());
- STL_VERIFY(_Ptr, "can't decrement value-initialized vector iterator");
- STL_VERIFY(_Mycont->_Myfirst < _Ptr, "can't decrement vector iterator before begin");
- #endif /* _ITERATOR_DEBUG_LEVEL != 0 */
- --_Ptr; //теперь _Ptr корректно указывает на 'h' (отладчик msvs [ptr] 104 'h')
- return (*this); //can't dereference out of range iterator, this указатель на текущий const_iterator объект разыменовав который получим сам const_iterator, что влияет здесь на out of range?
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement