Share via


concurrent_unordered_map::empty Method

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

bool empty( ) const;

Return Value

true if the concurrent container is empty, false otherwise.

Remarks

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.

Requirements

Header: internal_concurrent_hash.h

Namespace: concurrency

See Also

Reference

concurrent_unordered_map Class