| 896 | explicit operator holder_type &() { return holder; } |
| 897 | |
| 898 | static handle cast(const holder_type &src, return_value_policy, handle) { |
| 899 | const auto *ptr = holder_helper<holder_type>::get(src); |
| 900 | return type_caster_base<type>::cast_holder(ptr, &src); |
| 901 | } |
| 902 | |
| 903 | protected: |
| 904 | friend class type_caster_generic; |