diff --git a/lectures/21_hash_tables_II/README.md b/lectures/21_hash_tables_II/README.md index 1f48a4f..1bc38a3 100644 --- a/lectures/21_hash_tables_II/README.md +++ b/lectures/21_hash_tables_II/README.md @@ -114,33 +114,33 @@ 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) + - With no specified initial table size. (map a std::string type key to a class Foo type value) ```cpp std::unordered_map m; ``` - – Optionally specifying initial (minimum) table size. + - Optionally specifying initial (minimum) table size. ```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. + - Manually specifying the hash function type. ```cpp std::unordered_map > m(1000, MyHashFunction); ``` - – Using the decltype specifier to get the “declared type of an entity”. + - Using the decltype specifier to get the “declared type of an entity”. ```cpp std::unordered_map m(1000, MyHashFunction); ``` - Using a home-made std::string hash functor or function object. - – With no specified initial table size. + - With no specified initial table size. ```cpp std::unordered_map m; ``` - – Optionally specifying initial (minimum) table size. + - Optionally specifying initial (minimum) table size. ```cpp std::unordered_map m(1000); ```