Share via


concurrent_priority_queue::clear Method

Erases all elements in the concurrent priority. This method is not concurrency-safe.

void clear();

Remarks

clear is not concurrency-safe. You must ensure that no other threads are invoking methods on the concurrent priority queue when you call this method. clear does not free memory.

Requirements

Header: concurrent_priority_queue.h

Namespace: concurrency

See Also

Reference

concurrent_priority_queue Class