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.
pooled_connection& operator=( pooled_connection&& other);
If this->valid(),
returns the connection owned by *this to the pool and marks it as pending
reset (as if the destructor was called). It then transfers connection ownership
from other to *this.
After this function returns, if other.valid() == true,
this->valid() == true.
In any case, other will
become invalid (other.valid() == false).
No-throw guarantee.