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

◆ checkedCast() [2/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,
std::string facet,
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.
facetA facet name.
contextThe request context.
Returns
A new proxy with the requested type and facet, or nullopt if the target facet is not of the requested type.

Definition at line 126 of file ProxyFunctions.h.