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

Method len

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

Source from the content-addressed store, hash-verified

667struct KeysViewImpl : public detail::keys_view {
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 {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected