Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
pooled_connection::operator=

Move assignment.

Synopsis
pooled_connection&
operator=(
    pooled_connection&& other) noexcept;
Description

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).

Thread-safety

May cause a mutation on the connection pool that this points to. Thread-safe for a shared pool only if it was constructed with pool_params::thread_safe set to true.

Exception safety

No-throw guarantee.


PrevUpHomeNext