| 855 | \endrst */ |
| 856 | template <typename T, detail::enable_if_t<std::is_base_of<object, T>::value, int> = 0> |
| 857 | bool isinstance(handle obj) { |
| 858 | return T::check_(obj); |
| 859 | } |
| 860 | |
| 861 | template <typename T, detail::enable_if_t<!std::is_base_of<object, T>::value, int> = 0> |
| 862 | bool isinstance(handle obj) { |