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

Function cast_ref

include/pybind11/cast.h:1869–1872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1867// store the result in the given variable. For other types, this is a no-op.
1868template <typename T>
1869enable_if_t<cast_is_temporary_value_reference<T>::value, T> cast_ref(object &&o,
1870 make_caster<T> &caster) {
1871 return cast_op<T>(load_type(caster, o));
1872}
1873template <typename T>
1874enable_if_t<!cast_is_temporary_value_reference<T>::value, T> cast_ref(object &&,
1875 override_unused &) {

Callers

nothing calls this directly

Calls 1

load_typeFunction · 0.85

Tested by

no test coverage detected