From 975ae51a3e30a957b69d4e32671696c617f34ab3 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Thu, 9 Nov 2023 16:34:23 -0500 Subject: [PATCH] line break --- lectures/21_hash_tables_II/README.md | 36 ++++++++++++++-------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/lectures/21_hash_tables_II/README.md b/lectures/21_hash_tables_II/README.md index 73294dc..9a81f15 100644 --- a/lectures/21_hash_tables_II/README.md +++ b/lectures/21_hash_tables_II/README.md @@ -114,31 +114,31 @@ if (itr != my_data.end()) { - Using the default std::string hash function. - With no specified initial table size. (map a std::string type key to a class Foo type value) -```cpp -std::unordered_map m; -``` + ```cpp + std::unordered_map m; + ``` - Optionally specifying initial (minimum) table size. -```cpp -std::unordered_map m(1000); -``` + ```cpp + std::unordered_map m(1000); + ``` - Using a home-made std::string hash function. Note: We are required to specify the initial table size. - Manually specifying the hash function type. -```cpp -std::unordered_map > m(1000, MyHashFunction); -``` + ```cpp + std::unordered_map > m(1000, MyHashFunction); + ``` - Using the decltype specifier to get the “declared type of an entity”. -```cpp -std::unordered_map m(1000, MyHashFunction); -``` + ```cpp + std::unordered_map m(1000, MyHashFunction); + ``` - Using a home-made std::string hash functor or function object. - With no specified initial table size. -```cpp -std::unordered_map m; -``` + ```cpp + std::unordered_map m; + ``` - Optionally specifying initial (minimum) table size. -```cpp -std::unordered_map m(1000); -``` + ```cpp + std::unordered_map m(1000); + ``` ## 21.6 Additional STL Container Classes: Stacks