ExecutionContext.qbk 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. [/
  2. / Copyright (c) 2003-2019 Christopher M. Kohlhoff (chris at kohlhoff dot com)
  3. /
  4. / Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. /]
  7. [section:ExecutionContext Execution context requirements]
  8. A type `X` meets the `ExecutionContext` requirements if it is publicly and
  9. unambiguously derived from `execution_context`, and satisfies the additional
  10. requirements listed below.
  11. In the table below, `x` denotes a value of type `X`.
  12. [table ExecutionContext requirements
  13. [[expression] [return type] [assertion/note\npre/post-condition]]
  14. [
  15. [`X::executor_type`]
  16. [type meeting [link boost_asio.reference.Executor1 `Executor`] requirements]
  17. []
  18. ]
  19. [
  20. [`x.~X()`]
  21. []
  22. [Destroys all unexecuted function objects that were submitted via an
  23. executor object that is associated with the execution context.]
  24. ]
  25. [
  26. [`x.get_executor()`]
  27. [`X::executor_type`]
  28. [Returns an executor object that is associated with the execution context.]
  29. ]
  30. ]
  31. [endsect]