Skip to content

Commit e24ac09

Browse files
author
Ubuntu
committed
Version 1.0.2
1 parent 5aaddfd commit e24ac09

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Hashmap.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#ifndef LOUIERIKSSON_HASHMAP_H
2626
#define LOUIERIKSSON_HASHMAP_H
2727

28+
#include <cstddef>
2829
#include <functional>
2930
#include <stdexcept>
3031
#include <vector>
@@ -412,4 +413,4 @@ namespace LouiEriksson {
412413

413414
} // LouiEriksson
414415

415-
#endif //LOUIERIKSSON_HASHMAP_H
416+
#endif //LOUIERIKSSON_HASHMAP_H

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# C++ Hashmap (1.0.1)
1+
# C++ Hashmap (1.0.2)
22

33
## Table of Contents
44

@@ -52,10 +52,12 @@ This implementation is header-only. Simply include it in your project and you ar
5252

5353
The hashmap was written in C++17 and utilises the following standard headers:
5454

55+
#### &lt;cstddef&gt;
56+
This header is used for [size_t](https://en.cppreference.com/w/c/types/size_t), which is used to represent the size of the container.
57+
5558
#### &lt;functional&gt;
5659
This header is used for [std::hash](https://en.cppreference.com/w/cpp/utility/hash), which allows for generic hashing of C++ types. Developers can also provide custom specializations for their own types.
5760

58-
5961
#### &lt;stdexcept&gt;
6062
This header is used for [std::runtime_error](https://en.cppreference.com/w/cpp/error/runtime_error), which enables the script to throw meaningful exceptions.
6163

@@ -64,4 +66,4 @@ This header is used for [std::vector](https://en.cppreference.com/w/cpp/containe
6466

6567
### References
6668

67-
- Wang, Q. (Harry) (2020). Implementing Your Own HashMap (Explanation + Code). YouTube. Available at: https://www.youtube.com/watch?v=_Q-eNqTOxlE [Accessed 2021].
69+
- Wang, Q. (Harry) (2020). Implementing Your Own HashMap (Explanation + Code). YouTube. Available at: https://www.youtube.com/watch?v=_Q-eNqTOxlE [Accessed 2021].

0 commit comments

Comments
 (0)