| 1368 | // NOLINTNEXTLINE(readability-const-return-type) // PR #3263 |
| 1369 | reference dereference() const { return {key, value}; } |
| 1370 | void increment() { |
| 1371 | if (PyDict_Next(obj.ptr(), &pos, &key, &value) == 0) { |
| 1372 | pos = -1; |
| 1373 | } |
| 1374 | } |
| 1375 | bool equal(const dict_readonly &b) const { return pos == b.pos; } |
| 1376 | |
| 1377 | private: |