QGrpcInterceptorChain: tighten traits on owning/non-owning interceptors
Replace the generic pointer/unique_ptr detection with explicit support
for only T* and std::unique_ptr<T> with the default deleter. This
constrains the API to the ownership models the chain can handle
correctly (non-owning pointers and owning single objects), and
rejects unsupported inputs such as const interceptors and array types.
We add a !is_const<T> to the constraint, as constant interceptors are
not supported.
Found during the Qt 6.11 API review.
Pick-to: 6.11
Change-Id: Ief62c97ac4d5452f6a9e7c4dbdbc48555c4b09a8
Reviewed-by: Marc Mutz <marc.mutz@qt.io>