* The returned object should be short-lived: in particular, it must not outlive the called-upon
* The returned object should be short-lived: in particular, it must not outlive the called-upon
* instance.
* instance.
*/
*/
PYBIND11_NOINLINEinlinevalue_and_holderinstance::get_value_and_holder(consttype_info*find_type/*= nullptr default in common.h*/,boolthrow_if_missing/*= true in common.h*/){
PYBIND11_NOINLINEvalue_and_holderinstance::get_value_and_holder(consttype_info*find_type/*= nullptr default in common.h*/,boolthrow_if_missing/*= true in common.h*/){
// Optimize common case:
// Optimize common case:
if(!find_type||Py_TYPE(this)==find_type->type)
if(!find_type||Py_TYPE(this)==find_type->type)
returnvalue_and_holder(this,find_type,0,0);
returnvalue_and_holder(this,find_type,0,0);
...
@@ -349,7 +373,7 @@ PYBIND11_NOINLINE inline value_and_holder instance::get_value_and_holder(const t
...
@@ -349,7 +373,7 @@ PYBIND11_NOINLINE inline value_and_holder instance::get_value_and_holder(const t