boost::capy::any_executor::any_executor

Constructs from any executor type.

Synopsis

template<class Ex>
requires (
            !std::same_as<std::decay_t<Ex>, any_executor> &&
            !detail::is_strand_type<std::decay_t<Ex>>::value &&
            std::copy_constructible<std::decay_t<Ex>>)
any_executor(Ex&& ex);

Description

Allocates storage for a copy of the given executor and stores it internally. The executor must satisfy the Executor concept.

Postconditions

  • `*this` is valid

Parameters

Name Description

ex

The executor to wrap. A copy is stored internally.

Created with MrDocs