| 1475 | static bool check_(handle h) { return h.ptr() != nullptr && CheckFun(h.ptr()); } \ |
| 1476 | template <typename Policy_> /* NOLINTNEXTLINE(google-explicit-constructor) */ \ |
| 1477 | Name(const ::pybind11::detail::accessor<Policy_> &a) : Name(object(a)) {} |
| 1478 | |
| 1479 | #define PYBIND11_OBJECT_CVT(Name, Parent, CheckFun, ConvertFun) \ |
| 1480 | PYBIND11_OBJECT_COMMON(Name, Parent, CheckFun) \ |