Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ checkedCast() [1/4]

template<typename Prx, std::enable_if_t< std::is_base_of_v< ObjectPrx, Prx >, bool > = true>
std::optional< Prx > Ice::checkedCast ( const ObjectPrx & proxy,
const Context & context = noExplicitContext )

Creates a new proxy from an existing proxy after confirming the target object's type via a remote invocation.

Parameters
proxyThe source proxy.
contextThe request context.
Returns
A new proxy with the requested type, or nullopt if the target object does not support the requested type.

Definition at line 95 of file ProxyFunctions.h.