Lines Matching defs:iterator
86 // returned by emplace, i.e. an iterator for the entry and a bool set to `true` if the entry was
88 inline std::pair<decltype(internals::registered_types_py)::iterator, bool> all_type_info_get_cache(PyTypeObject *type);
221 // Used for past-the-end iterator
271 struct iterator {
277 iterator(instance *inst, const type_vec *tinfo)
284 // Past-the-end iterator:
285 iterator(size_t end) : curr(end) {}
287 bool operator==(const iterator &other) { return curr.index == other.curr.index; }
288 bool operator!=(const iterator &other) { return curr.index != other.curr.index; }
289 iterator &operator++() {
300 iterator begin() { return iterator(inst, &tinfo); }
301 iterator end() { return iterator(tinfo.size()); }
303 iterator find(const type_info *find_type) {
669 // is extremely common, we handle it specially to avoid the loop iterator and type