Commit e6ca6390 authored by 24OI-bot's avatar 24OI-bot
Browse files

style: format markdown files with remark-lint

parent f31c70db
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -86,6 +86,7 @@ map<string, int> mp;
```cpp
map<string, int> mp = {{"Tom", 0}, {"Bob", "100"}, {"Alan", 100}};
```

(注:在使用 insert 函数时将返回一个类型为 `pair <iterator,bool>` 的值,其中 iterator 是一个新元素的迭代器,而 bool 则是判断元素是否插入成功,由于 `map` 中的元素具有唯一性质,所以如果再 `map` 中若已有等效元素,则可能插入失败,返回 false,反之则返回 true, `set` 中的 insert 也是如此)

### 查找、修改元素