OZO 「お象」
Boost.Asio and libpq based asynchronous PostgreSQL unofficial header-only C++17 client library.
CompletionToken Interface Reference

#include <ozo/core/concept.h>

Description

Completion token concept.

CompletionToken is an entity which determines how to continue with asynchronous operation result when the operation is complete. According to boost::asio::async_completion it defines the return value of an asynchronous function.

Assume we have an asynchronous IO function:

template <typename ConnectionProvider, typename CompletionToken>
auto async_io(ConnectionProvider&&, Param1 p1, ..., CompletionToken&&);

Then the result type of the function depends on CompletionToken, and CompletionToken - is any of these next entities:

ConnectionProvider
Connection provider concept
CompletionToken
Completion token concept.
Handler
Handler concept.
ozo::connection_type
typename get_connection_type< std::decay_t< T > >::type connection_type
The connection object type that ConnectionProvider or ConnectionSource provide.
Definition: connection.h:572