Export (0) Print
Expand All

concurrent_vector::size Method

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

size_type size() const;

The number of elements in this concurrent_vector object.

The returned size is guaranteed to include all elements appended by calls to the function push_back, or grow operations that have completed prior to invoking this method. However, it may also include elements that are allocated but still under construction by concurrent calls to any of the growth methods.

Header: concurrent_vector.h

Namespace: concurrency

Show:
© 2014 Microsoft