Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.