Windows apps
Collapse the table of content
Expand the table of content
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::clear Method


Erases all elements in the concurrent vector. This method is not concurrency-safe.

void clear();

clear is not concurrency-safe. You must ensure that no other threads are invoking methods on the concurrent vector when you call this method. clear does not free internal arrays. To free internal arrays, call the function shrink_to_fit after clear.


Header: concurrent_vector.h

Namespace: concurrency

© 2016 Microsoft