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

Method iter

include/pybind11/stl_bind.h:670–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

668 explicit KeysViewImpl(Map &map) : map(map) {}
669 size_t len() override { return map.size(); }
670 iterator iter() override { return make_key_iterator(map.begin(), map.end()); }
671 bool contains(const handle &k) override {
672 try {
673 return map.find(k.template cast<typename Map::key_type>()) != map.end();

Callers

nothing calls this directly

Calls 3

make_key_iteratorFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected