Whole-Table Operations

These operations affect an entire table. Do not concurrently invoke them on the same table.

concurrent_hash_map()

Effects: constructs an empty table.

concurrent_hash_map( const concurrent_hash_map& table )

Effects: copies a table. The table being copied may have map operations running on it concurrently.

~concurrent_hash_map()

Effects: removes all items from the table and destroys it. This method is not safe to execute concurrently with other methods on the same concurrent_hash_map.

concurrent_hash_map&operator=( concurrent_hash_map& source )

Effects: if the source table and destination table (this) are distinct, clear the destination table and copy all key-value pairs from the source table to the destination table. Otherwise, do nothing.

Returns: reference to the destination table.

void clear()

Effects: erases all key-value pairs from the table.

Get Intel Threading Building Blocks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.