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>
commitd595b669ecc02614fbc1d045c66cee18607b92f8
parentb81b8f160a225ece1fc17b023c110877bf95ccca
authorDennis Oberst <dennis.oberst@qt.io>
committerDennis Oberst <dennis.oberst@qt.io>
commit timeThu, 19 Feb 2026 12:36:15 +0100