boost::capy::executor_ref::target
Return a pointer to the wrapped executor if it matches the requested type.
Synopsis
Declared in <boost/capy/ex/executor_ref.hpp>
template<typename Executor>
Executor const*
target() const;
Description
Performs a type check against the stored executor and returns a typed pointer when the types match, or nullptr otherwise. Analogous to std::any_cast< Executor >( &a ).
Template Parameters
| Name | Description |
|---|---|
Executor |
The executor type to retrieve. |
Created with MrDocs