MCPcopy Create free account
hub / github.com/pybind/pybind11 / increment

Method increment

include/pybind11/pytypes.h:1370–1374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
1377private:

Callers

nothing calls this directly

Calls 1

ptrMethod · 0.80

Tested by

no test coverage detected