26 Containers library [containers]

26.4 Associative containers [associative]

26.4.4 Class template map [map]

26.4.4.3 map element access [map.access]

T& operator[](const key_type& x);

Effects: Эквивалентно: return try_­emplace(x).first->second;

T& operator[](key_type&& x);

Effects: Эквивалентно: return try_­emplace(move(x)).first->second;

T& at(const key_type& x); const T& at(const key_type& x) const;

Returns: Ссылка на mapped_­type соответствующий x в *this.

Throws: Объект исключения типа, out_­of_­range если такой элемент отсутствует.

Complexity: Логарифмический.