Struct delegating_executor

Struct Documentation

struct concore::v1::delegating_executor

Executor type that forwards the execution to a give functor.

All the functor objects passed to the execute() method will be delegated to a function that takes a task parameter. This function is passed to the constructor of the class.

Public Types

using fun_type = std::function<void(task)>

The type of the function to be used to delegate execution to.

Public Functions

delegating_executor(fun_type f)

Constructor.

void execute(task t) const

Method called to execute work in this executor.

template<typename F>
void execute(F &&f) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Friends

friend bool operator==(delegating_executor l, delegating_executor r)

Equality operator; always false.

friend bool operator!=(delegating_executor l, delegating_executor r)

Inequality operator; always true.