![]() |
Home | Libraries | People | FAQ | More |
Returns whether the object is in a moved-from state.
bool valid() const noexcept;
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.
No-throw guarantee.
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.