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

Function construct_alias_from_cpp

include/pybind11/detail/init.h:92–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90// inherit all the base class constructors.
91template <typename Class>
92void construct_alias_from_cpp(std::true_type /*is_alias_constructible*/,
93 value_and_holder &v_h,
94 Cpp<Class> &&base) {
95 v_h.value_ptr() = new Alias<Class>(std::move(base));
96}
97template <typename Class>
98[[noreturn]] void construct_alias_from_cpp(std::false_type /*!is_alias_constructible*/,
99 value_and_holder &,

Callers

nothing calls this directly

Calls 1

moveFunction · 0.85

Tested by

no test coverage detected