| 142 | |
| 143 | template <typename T, detail::enable_if_t<std::is_enum<T>::value, int> = 0> |
| 144 | bool isinstance_native_enum_impl(handle obj, const std::type_info &tp) { |
| 145 | handle native_enum = global_internals_native_enum_type_map_get_item(tp); |
| 146 | if (!native_enum) { |
| 147 | return false; |
| 148 | } |
| 149 | return isinstance(obj, native_enum); |
| 150 | } |
| 151 | |
| 152 | template <typename T, detail::enable_if_t<!std::is_enum<T>::value, int> = 0> |
| 153 | bool isinstance_native_enum_impl(handle, const std::type_info &) { |
nothing calls this directly
no test coverage detected