boost::capy::executor_ref::target

Return a pointer to the wrapped executor if it matches the requested type.

Synopsis

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 ).

Return Value

A pointer to the underlying executor, or nullptr if the type does not match.

Template Parameters

Name Description

Executor

The executor type to retrieve.

Created with MrDocs