29 #ifndef _TO_NONCONST_ITERATOR_H_ 30 #define _TO_NONCONST_ITERATOR_H_ 38 typename Type::difference_type dist = std::distance(static_cast<typename Type::const_iterator>(obj.begin()), it);
39 typename Type::iterator res_it = obj.begin()+dist;
45 typename Type::iterator
to_nonsonst_iterator(
typename Type::iterator base_it,
typename Type::const_iterator it)
47 typename Type::difference_type dist = std::distance(static_cast<typename Type::const_iterator>(base_it), it);
48 typename Type::iterator res_it = base_it+dist;
52 #endif //_TO_NONCONST_ITERATOR_H_ Type::iterator to_nonsonst_iterator(Type &obj, typename Type::const_iterator it)