From Jason Turner

[unord.map.elem]

Diff to HTML by rtfpessoa

tmp/tmpn5thpg9q/{from.md → to.md} RENAMED
@@ -3,13 +3,13 @@
3
  ``` cpp
4
  mapped_type& operator[](const key_type& k);
5
  mapped_type& operator[](key_type&& k);
6
  ```
7
 
8
- *Requires:* `mapped_type` shall be `DefaultConstructible`. For the first
9
- operator, `key_type` shall be `CopyConstructible`. For the second
10
- operator, `key_type` shall be `MoveConstructible`.
11
 
12
  *Effects:* If the `unordered_map` does not already contain an element
13
  whose key is equivalent to *`k`*, the first operator inserts the value
14
  `value_type(k, mapped_type())` and the second operator inserts the value
15
  `value_type(std::move(k), mapped_type())`.
 
3
  ``` cpp
4
  mapped_type& operator[](const key_type& k);
5
  mapped_type& operator[](key_type&& k);
6
  ```
7
 
8
+ *Requires:* `mapped_type` shall be `DefaultInsertable` into `*this`. For
9
+ the first operator, `key_type` shall be `CopyInsertable` into `*this`.
10
+ For the second operator, `key_type` shall be `MoveConstructible`.
11
 
12
  *Effects:* If the `unordered_map` does not already contain an element
13
  whose key is equivalent to *`k`*, the first operator inserts the value
14
  `value_type(k, mapped_type())` and the second operator inserts the value
15
  `value_type(std::move(k), mapped_type())`.