boost::capy::execution_context::target
Return a pointer to this context if it matches the requested type.
Description
Performs a type check and downcasts this when the types match, or returns nullptr otherwise. Analogous to std::any_cast< ExecutionContext >( &a ).
Return Value
A pointer to this context as the requested type, or nullptr if the type does not match.
Template Parameters
| Name | Description |
|---|---|
ExecutionContext |
The derived context type to retrieve. |
Created with MrDocs