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

Method load

include/pybind11/cast.h:1538–1541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1536
1537 template <typename T = type, enable_if_t<std::is_same<T, handle>::value, int> = 0>
1538 bool load(handle src, bool /* convert */) {
1539 value = src;
1540 return static_cast<bool>(value);
1541 }
1542
1543 template <typename T = type, enable_if_t<std::is_base_of<object, T>::value, int> = 0>
1544 bool load(handle src, bool /* convert */) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected