Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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