public member function


default (1)
copy [deleted] (2)
condition_variable_any (const condition_variable_any&) = delete;
Construct condition_variable_any
Constructs a condition_variable_any object.

condition_variable objects cannot be copied/moved (both the copy constructor and assignment operator are deleted for this type).



Exception safety

Strong guarantee: no effects in case an exception is thrown.
A failure to allocate memory may be signaled by throwing bad_alloc.

If the construction fails, a system_error exception is thrown:
exception typeerror conditiondescription
system_errorerrc::resource_unavailable_try_againA resource limitation (other than memory allocation) prevents initialization
system_errorerrc::operation_not_permittedThe thread does not have the proviliges to perform the operation
Depending on the library implementation, it may throw exceptions on other situations (such as bad_alloc on a failure to allocate memory).

See also