concurrent_priority_queue::size Method

concurrent_priority_queue::size Method


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

size_type size() const;

The number of elements in this concurrent_priority_queue object.

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.


Header: concurrent_priority_queue.h

Namespace: concurrency

© 2016 Microsoft