Return a reference to the entry for key, inserting one if needed.
Synopsis
Declared in <bdlc_flathashtable.h>
template<class KEY_TYPE>
ENTRY&
operator[](KEY_TYPE&& key);
Description
If an entry with the specified key is not already present in this table, insert an entry having the value defined by ENTRY_UTIL::construct; otherwise, this method has no effect. Return an iterator referring to the (possibly newly inserted) object in this table with the key.
Return Value
reference to the entry for key
Parameters
Name |
Description |
key |
key of the entry to find or insert |
Created with MrDocs