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

Function call_operator_delete

include/pybind11/pybind11.h:1921–1923  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1919/// Call class-specific delete if it exists or global otherwise. Can also be an overload set.
1920template <typename T, enable_if_t<has_operator_delete<T>::value, int> = 0>
1921void call_operator_delete(T *p, size_t, size_t) {
1922 T::operator delete(p);
1923}
1924template <typename T,
1925 enable_if_t<!has_operator_delete<T>::value && has_operator_delete_size<T>::value, int>
1926 = 0>

Callers 1

dealloc_implMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected