boost::capy::executor_ref::target

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

Synopses

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

template<typename Executor>
Executor const*
target() const;

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

template<typename Executor>
Executor*
target();

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