MCPcopy Create free account
hub / github.com/bab2min/tomotopy / len

Method len

src/python/handler/PyUtils.h:2617–2626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2615
2616 template<T ptr>
2617 static constexpr lenfunc len()
2618 {
2619 return (lenfunc)[](PyObject* self)->Py_ssize_t
2620 {
2621 return handleExc([&]()
2622 {
2623 return Base::template len<ptr>((typename Base::ClassType*)self);
2624 });
2625 };
2626 }
2627
2628 template<T ptr>
2629 static constexpr reprfunc repr()

Callers

nothing calls this directly

Calls 1

handleExcFunction · 0.85

Tested by

no test coverage detected