Skip to content

book: re-compose words to avoid out of pdf's margin #229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion book/en-us/04-containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ And select the appropriate location to insert into the container. When traversin
The elements in the unordered container are not sorted, and the internals is implemented by the Hash table. The average complexity of inserting and searching for elements is `O(constant)`,
Significant performance gains can be achieved without concern for the order of the elements inside the container.

C++11 introduces two sets of unordered containers: `std::unordered_map`/`std::unordered_multimap` and
C++11 introduces two unordered containers: `std::unordered_map`/`std::unordered_multimap` and
`std::unordered_set`/`std::unordered_multiset`.

Their usage is basically similar to the original `std::map`/`std::multimap`/`std::set`/`set::multiset`
Expand Down
2 changes: 1 addition & 1 deletion book/zh-cn/04-containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ std::sort(arr.begin(), arr.end());
而无序容器中的元素是不进行排序的,内部通过 Hash 表实现,插入和搜索元素的平均复杂度为 `O(constant)`,
在不关心容器内部元素顺序时,能够获得显著的性能提升。

C++11 引入了两组无序容器:`std::unordered_map`/`std::unordered_multimap` 和
C++11 引入了的两组无序容器分别是:`std::unordered_map`/`std::unordered_multimap` 和
`std::unordered_set`/`std::unordered_multiset`。

它们的用法和原有的 `std::map`/`std::multimap`/`std::set`/`set::multiset` 基本类似,
Expand Down