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

This is the documentation for a snapshot of the develop branch, built from commit 2daa88693b.
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