Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

Requirements

Header: concurrent_vector.h

Namespace: concurrency

Show:
© 2016 Microsoft