22 Containers library [containers]

22.4 Associative containers [associative]

22.4.4 Class template map [map]

22.4.4.3 Element access [map.access]

mapped_type& operator[](const key_type& x);
Effects: Equivalent to: return try_­emplace(x).first->second;
mapped_type& operator[](key_type&& x);
Effects: Equivalent to: return try_­emplace(move(x)).first->second;
mapped_type& at(const key_type& x); const mapped_type& at(const key_type& x) const;
Returns: A reference to the mapped_­type corresponding to x in *this.
Throws: An exception object of type out_­of_­range if no such element is present.
Complexity: Logarithmic.