Template:cpp/container/operator at assoc

Returns a reference to the value that is mapped to a key equivalent to, performing an insertion if such key does not already exist.

Return value
Reference to the mapped value of the new element if no element with key existed. Otherwise a reference to the mapped value of the existing element whose key is equivalent to.

Exceptions
If an exception is thrown by any operation, the insertion has no effect.

Example
{{#switch: {{{1|}}}|map=

Defect reports
}}