From 52c628afeda3b4fbc80377f162343228a1471c82 Mon Sep 17 00:00:00 2001 From: Ou Changkun Date: Tue, 3 Apr 2018 19:40:07 +0200 Subject: [PATCH] =?UTF-8?q?resolve=20#3,=20=E4=BF=AE=E6=AD=A3=20unorder=5F?= =?UTF-8?q?map=20=E7=AC=94=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- book/4-containers.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/4-containers.md b/book/4-containers.md index c1168c7..4edc40a 100644 --- a/book/4-containers.md +++ b/book/4-containers.md @@ -70,7 +70,7 @@ std::sort(arr.begin(), arr.end()); C++11 引入了两组无序容器:`std::unordered_map`/`std::unordered_multimap` 和 `std::unordered_set`/`std::unordered_multiset`。 -它们的用法和原有的 `std::map`/`std::multimap`/`std::set`/`set::multiset` 基本类似,由于这些容器我们已经很熟悉了,便不一一举例,我们直接来比较一下`std::map`和`std::multimap`: +它们的用法和原有的 `std::map`/`std::multimap`/`std::set`/`set::multiset` 基本类似,由于这些容器我们已经很熟悉了,便不一一举例,我们直接来比较一下`std::map`和`std::unorder_map`: ```cpp #include @@ -248,4 +248,4 @@ std::cout << tuple_index(i, new_tuple) << std::endl; 知识共享许可协议 -本教程由[欧长坤](https://github.com/changkun)撰写,采用[知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议](http://creativecommons.org/licenses/by-nc-nd/4.0/)许可。项目中代码使用 MIT 协议开源,参见[许可](../LICENSE)。 \ No newline at end of file +本教程由[欧长坤](https://github.com/changkun)撰写,采用[知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议](http://creativecommons.org/licenses/by-nc-nd/4.0/)许可。项目中代码使用 MIT 协议开源,参见[许可](../LICENSE)。