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

Method load

include/pybind11/cast.h:756–765  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

754
755public:
756 bool load(handle src, bool convert) {
757 if (!isinstance<sequence>(src)) {
758 return false;
759 }
760 const auto seq = reinterpret_borrow<sequence>(src);
761 if (seq.size() != size) {
762 return false;
763 }
764 return load_impl(seq, convert, indices{});
765 }
766
767 template <typename T>
768 static handle cast(T &&src, return_value_policy policy, handle parent) {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected