boost::capy::execution_context::target

Return a pointer to this context if it matches the requested type.

Synopses

Return a pointer to this context if it matches the requested type.

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

Return a pointer to this context if it matches the requested type.

template<typename ExecutionContext>
ExecutionContext*
target();

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