MCPcopy Create free account
hub / github.com/pybind/pybind11 / operator[]

Method operator[]

include/pybind11/pytypes.h:2599–2601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2597}
2598template <typename D>
2599item_accessor object_api<D>::operator[](handle key) const {
2600 return {derived(), reinterpret_borrow<object>(key)};
2601}
2602template <typename D>
2603item_accessor object_api<D>::operator[](object &&key) const {
2604 return {derived(), std::move(key)};

Callers

nothing calls this directly

Calls 3

derivedClass · 0.85
moveFunction · 0.85
strClass · 0.85

Tested by

no test coverage detected