OZO 「お象」
Boost.Asio and libpq based asynchronous PostgreSQL unofficial header-only C++17 client library.
ozo::failover::basic_context< ConnectionProvider, TimeConstraint, Args > Struct Template Reference

#include <ozo/failover/strategy.h>

Description

template<typename ConnectionProvider, typename TimeConstraint, typename ... Args>
struct ozo::failover::basic_context< ConnectionProvider, TimeConstraint, Args >

Basic operation context.

Template Parameters
ConnectionProvider— connection provider type.
TimeConstraint— operation #TimeConstraint type.
Args— other operation arguments' type.

Public Member Functions

 basic_context (ConnectionProvider p, TimeConstraint t, Args ...args)
 

Public Attributes

std::decay_t< ConnectionProviderprovider
 connection provider for an operation, typically deduced from operation's 1st argument.
 
TimeConstraint time_constraint
 #TimeConstraint for an operation, typically deduced from operation's 2nd argument.
 
hana::tuple< std::decay_t< Args >... > args
 Other arguments of an operation except CompletionToken.
 

Constructors

◆ basic_context()

template<typename ConnectionProvider , typename TimeConstraint , typename ... Args>
ozo::failover::basic_context< ConnectionProvider, TimeConstraint, Args >::basic_context ( ConnectionProvider  p,
TimeConstraint  t,
Args ...  args 
)

Construct a new basic context object

Parameters
p— connection provider for an operation.
t— #TimeConstraint for an operation.
args— other arguments of an operation except CompletionToken.