Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a development version of boost.
PrevUpHomeNext
connection_pool::connection_pool (2 of 3 overloads)

Constructs a connection pool.

Synopsis
template<
    class ExecutionContext>
connection_pool(
    ExecutionContext& ctx,
    pool_params params);
Description

Equivalent to connection_pool(ctx.get_executor(), params).

This function participates in overload resolution only if ExecutionContext satisfies the ExecutionContext requirements imposed by Boost.Asio.

Exception safety

Strong guarantee. Exceptions may be thrown by memory allocations.

Exceptions

Type

Thrown On

std::invalid_argument

If params contains values that violate the rules described in pool_params.


PrevUpHomeNext