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
Move-constructor.
connection_pool( connection_pool&& other);
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.
No-throw guarantee.
This function is never thread-safe, regardless of the executor configuration passed to the constructor. Calling this function concurrently with any other function introduces data races.