concurrent_unordered_map::empty Method

concurrent_unordered_map::empty Method


Tests whether no elements are present. This method is concurrency safe.

bool empty( ) const;

true if the concurrent container is empty, false otherwise.

In the presence of concurrent inserts, whether or not the concurrent container is empty may change immediately after calling this function, before the return value is even read.


Header: internal_concurrent_hash.h

Namespace: concurrency

© 2016 Microsoft