concurrent_priority_queue::size Method

Returns the number of elements in the concurrent priority queue. This method is concurrency-safe.

size_type size() const;

Return Value

The number of elements in this concurrent_priority_queue object.

Remarks

The returned size is guaranteed to include all elements added by calls to the function push. However, it may not reflect results of pending concurrent operations.

Requirements

Header: concurrent_priority_queue.h

Namespace: concurrency

See Also

Reference

concurrent_priority_queue Class