Share via


concurrent_queue::clear Method

Clears the concurrent queue, destroying any currently enqueued elements. This method is not concurrency-safe.

template<
   typename _Ty,
   class _Ax
>
void concurrent_queue<_Ty,_Ax>::clear();

Requirements

Header: concurrent_queue.h

Namespace: Concurrency

See Also

Reference

concurrent_queue Class