Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
connection_pool::valid

Returns whether the object is in a moved-from state.

Synopsis
bool
valid() const noexcept;
Description

This function returns always true except for pools that have been moved-from. Moved-from objects don't represent valid pools. They can only be assigned to or destroyed.

Exception safety

No-throw guarantee.

Thread-safety

Reads the internal state handle. Does not access the pool state. Can be called concurrently with any other function that reads the state handle, like async_run or async_get_connection. It can't be called concurrently with functions modifying the handle, like assignments, even if pool_params::thread_safe is set to true.


PrevUpHomeNext