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 snapshot of the master branch, built from commit b14f8ca719.
PrevUpHomeNext
connection_pool::connection_pool (3 of 3 overloads)

Move-constructor.

Synopsis
connection_pool(
    connection_pool&& other);
Description

Constructs a connection pool by taking ownership of other.

After this function returns, if other.valid() == true, this->valid() == true. In any case, other will become invalid (other.valid() == false).

Moving a connection pool with outstanding async operations is safe.

Exception safety

No-throw guarantee.

Thread-safety

Mutates other's internal state handle. Does not access the pool state. This function can never be called concurrently with other functions that read the internal state handle, even for pools created with pool_params::thread_safe set to true.

The internal pool state is not accessed, so this function can be called concurrently with functions that only access the pool's internal state, like returning connections.


PrevUpHomeNext