##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::condition_variable_any::condition_variable_any

From cppreference.com
< cpp‎ | thread‎ | condition variable any

[edit template]

condition_variable_any(); | (1) | (since C++11)
condition_variable_any(const condition_variable_any&) = delete; | (2) | (since C++11)

1) Constructs an object of type `std::condition_variable_any`.

2) Copy constructor is deleted.

### [edit] Parameters

(none)

### [edit] Exceptions

1) May throw std::system_error with std::error_condition equal to std::errc::operation_not_permitted if the thread has no privilege to create a condition variable, std::errc::resource_unavailable_try_again if a non-memory resource limitation prevents this initialization, or another implementation-defined value.

### [edit] See also

C documentation for cnd_init

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/thread/condition_variable_any/condition_variable_any&oldid=90347"