Home | History | Annotate | Download | only in gdbsupport

Lines Matching defs:iterator

1 /* A safe iterator for GDB, the GNU debugger.
24 /* A forward iterator that wraps Iterator, such that when iterating
25 with iterator IT, it is possible to delete *IT without invalidating
42 template<typename Iterator>
47 typedef typename Iterator::value_type value_type;
48 typedef typename Iterator::reference reference;
49 typedef typename Iterator::pointer pointer;
50 typedef typename Iterator::iterator_category iterator_category;
51 typedef typename Iterator::difference_type difference_type;
53 /* Construct the begin iterator using the given arguments; the end iterator is
64 /* Construct the iterator using the first argument, and construct
65 the end iterator using the second argument. */
76 /* Create a one-past-end iterator. */
80 typename std::invoke_result<decltype(&Iterator::operator*), Iterator>::type
100 Iterator m_it {};
103 Iterator m_next {};
105 /* A one-past-end iterator. */
106 Iterator m_end {};
117 typedef basic_safe_iterator<typename Range::iterator> iterator;
124 iterator begin ()
126 return iterator (m_range.begin (), m_range.end ());
129 iterator end ()
131 return iterator (m_range.end (), m_range.end ());