Searched refs:polymorphic_type_hook (Results 1 - 2 of 2) sorted by relevance

/gem5/ext/pybind11/tests/
H A Dtest_tagbased_polymorphic.cpp2 tests/test_tagbased_polymorphic.cpp -- test of polymorphic_type_hook
109 struct polymorphic_type_hook<itype, detail::enable_if_t<std::is_base_of<Animal, itype>::value>> struct in namespace:Animal::pybind11
/gem5/ext/pybind11/include/pybind11/
H A Dcast.h792 // polymorphic_type_hook<itype>::get(src, tinfo) determines whether the object pointed
800 // The default polymorphic_type_hook just returns src. A specialization for polymorphic
806 // You may specialize polymorphic_type_hook yourself for types that want to appear
810 struct polymorphic_type_hook struct
815 struct polymorphic_type_hook<itype, detail::enable_if_t<std::is_polymorphic<itype>::value>> struct
847 // polymorphic_type_hook). If the instance isn't derived, returns the base version.
851 const void *vsrc = polymorphic_type_hook<itype>::get(src, instance_type);
858 // except via a user-provided specialization of polymorphic_type_hook,

Completed in 12 milliseconds