Luna::HashMap::insert
Pair< iterator, bool > insert(const value_type &value)
Inserts the specified key-value pair to the map.
Parameters
-
in value
The key-value pair to insert. The element is copy-constructed into the map.
Return value
Returns one iterator-bool pair indicating the insertion result:* If the returned Boolean value is true, then the element is successfully inserted to the map, and the returned iterator points to the inserted element.
- If the returned Boolean value is
false, then the insertion is failed because another element with the same key already exists, and the returned iterator points to the existing element in the map.