line break

This commit is contained in:
Jidong Xiao
2023-11-09 16:29:58 -05:00
parent 9f7aecc5b0
commit 6ab7e5d32f

View File

@@ -114,7 +114,7 @@ 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 Foo class type value)
With no specified initial table size. (map a std::string type key to a class Foo type value)
```cpp
std::unordered_map<std::string,Foo> m;
```
@@ -132,6 +132,7 @@ std::unordered_map<std::string,Foo,std::function<unsigned int(std::string)> > m(
std::unordered_map<std::string,Foo,decltype(&MyHashFunction)> m(1000, MyHashFunction);
```
- Using a home-made std::string hash functor or function object.
With no specified initial table size.
```cpp
std::unordered_map<std::string,Foo,MyHashFunctor> m;