July 2007
Intermediate to advanced
332 pages
10h 4m
English
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.