public member function


default (1)
copy [deleted] (2)
condition_variable (const condition_variable&) = delete;
Construct condition_variable
Constructs a condition_variable 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
Depending on the library implementation, it may throw exceptions on other situations.

See also