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 assignment.
connection_pool& operator=( connection_pool&& other);
Assigns other to *this, transferring
ownership.
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.