| Home | Libraries | People | FAQ | More

###### 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`.