2
0
mirror of https://github.com/boostorg/asio.git synced 2026-01-23 05:22:08 +00:00
Commit Graph

19 Commits

Author SHA1 Message Date
Christopher Kohlhoff
06213e7378 Tell doxygen about the BOOST_ASIO_NOEXCEPT_IF macro. 2021-04-06 19:22:20 +10:00
Christopher Kohlhoff
311d355ab4 Add experimental::as_single completion token adapter.
The as_single completion token adapter can be used to specify that the
completion handler arguments should be combined into a single argument.
For completion signatures with a single parameter, the argument is
passed through as-is. For signatures with two or more parameters, the
arguments are combined into a tuple.

The as_single adapter may be used in conjunction with use_awaitable and
structured bindings as follows:

    auto [e, n] = co_await socket.async_read_some(
        boost::asio::buffer(data), as_single(use_awaitable));

Alternatively, it may be used as a default completion token like so:

    using default_token = as_single_t<use_awaitable_t<>>;
    using tcp_socket = default_token::as_default_on_t<tcp::socket>;
    // ...
    awaitable<void> do_read(tcp_socket socket)
    {
      // ...
      auto [e, n] = co_await socket.async_read_some(boost::asio::buffer(data));
      // ...
    }
2020-11-02 14:03:09 +11:00
Christopher Kohlhoff
87d0d486f2 Documentation generation tweaks. 2020-07-27 09:34:51 +10:00
Christopher Kohlhoff
365661a7e3 More documentation generation tweaks for new execution facilities. 2020-07-06 23:53:55 +10:00
Christopher Kohlhoff
c55037795c Documentation generation tweaks for new execution facilities. 2020-06-23 11:08:25 +10:00
Christopher Kohlhoff
81dc9a91c2 Documentation for default completion tokens. 2019-12-04 23:40:58 +11:00
Christopher Kohlhoff
95041862ae Remove experimental directory from documentation processing. 2019-03-06 20:22:23 +11:00
Christopher Kohlhoff
4d7a656b66 Add experimental features to documentation. 2018-03-04 23:09:04 +11:00
Christopher Kohlhoff
0613d396ff Add new macros to doxygen configuration. 2017-10-24 07:32:54 +11:00
Christopher Kohlhoff
5aa758b54a Ignore new macro when generating documentation. 2017-03-08 07:10:48 +11:00
Christopher Kohlhoff
91fce6c711 Regenerate documentation.
[SVN r85801]
2013-09-20 12:10:45 +00:00
Christopher Kohlhoff
a05bbf3a53 Regenerate documentation.
[SVN r84494]
2013-05-25 13:03:48 +00:00
Christopher Kohlhoff
be0221203a Add new traits classes, handler_type and async_result, that allow
the customisation of the return type of an initiating function.


[SVN r84308]
2013-05-16 23:26:04 +00:00
Christopher Kohlhoff
e5818e7994 Include the io_service::service class's private member functions in the documentation.
[SVN r72406]
2011-06-05 14:09:04 +00:00
Christopher Kohlhoff
2f5fcaf01c * Add documentation for new features.
* Duration type should be signed in tick_count_timer example.

* Regenerate documentation.

* Make definition of BOOST_ASIO_MOVE_ARG and BOOST_ASIO_MOVE_CAST separate to
  the definition of BOOST_ASIO_HAS_MOVE, to allow the latter to be user-defined.


[SVN r72404]
2011-06-05 13:29:41 +00:00
Christopher Kohlhoff
b3635001fa Fix generation for some links from tutorial to reference material.
[SVN r47298]
2008-07-10 23:05:26 +00:00
Christopher Kohlhoff
0d06a87088 Add UNIX domain sockets, POSIX stream-oriented descriptors and Windows
stream-oriented handles to the reference documentation.


[SVN r44682]
2008-04-21 06:15:17 +00:00
Christopher Kohlhoff
9f319db484 Clean up documentation.
[SVN r40356]
2007-10-23 13:31:12 +00:00
Christopher Kohlhoff
00690b50ed Add documentation.
[SVN r36502]
2006-12-24 08:35:08 +00:00