Skip to content

Commit

Permalink
Version 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Jan 10, 2024
1 parent 9295787 commit 6baf8f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions Hashmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace LouiEriksson {

/// <summary>
/// <para>
/// Version 1.0.0
/// Version 1.0.1
/// </para>
/// Custom Hashmap implementation accepting a customisable key and value type. Created using a combination of prior knowledge and brief online tutorial.
/// <para><remarks>This implementation requires that your "key" type is compatible with std::hash and that the stored data types are copyable.</remarks></para>
Expand Down Expand Up @@ -109,10 +109,7 @@ namespace LouiEriksson {
/// Initialise Hashmap.
/// </summary>
/// <param name="_capacity">Initial capacity of the Hashmap. Must be larger than 0.</param>
Hashmap(const size_t& _capacity = 1) {

m_Size = 0;

Hashmap(const size_t& _capacity = 1) : m_Size(0) {
m_Buckets.resize(_capacity);
}

Expand All @@ -135,7 +132,7 @@ namespace LouiEriksson {
/// </summary>
/// <param name="_key">Key of the entry.</param>
/// <returns>True if successful, false otherwise.</returns>
bool ContainsKey(const Tk& _key) noexcept {
bool ContainsKey(const Tk& _key) const noexcept {

auto result = false;

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# C++ Hashmap (1.0.0)
# C++ Hashmap (1.0.1)

## Table of Contents

Expand Down

0 comments on commit 6baf8f4

Please sign in to comment.