Skip to content

Commit

Permalink
Fixes difference_type being mispelled as diference_type.
Browse files Browse the repository at this point in the history
This fixes the type alias `difference_type` which was mispelled as
`diference_type` in `map`, `set`, `table`, and their transients.
  • Loading branch information
nicola-gigante committed Mar 12, 2024
1 parent 57a8c5e commit f9874f6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion immer/map.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class map
using mapped_type = T;
using value_type = std::pair<K, T>;
using size_type = detail::hamts::size_t;
using diference_type = std::ptrdiff_t;
using difference_type = std::ptrdiff_t;
using hasher = Hash;
using key_equal = Equal;
using reference = const value_type&;
Expand Down
2 changes: 1 addition & 1 deletion immer/map_transient.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class map_transient : MemoryPolicy::transience_t::owner
using mapped_type = T;
using value_type = std::pair<K, T>;
using size_type = detail::hamts::size_t;
using diference_type = std::ptrdiff_t;
using difference_type = std::ptrdiff_t;
using hasher = Hash;
using key_equal = Equal;
using reference = const value_type&;
Expand Down
2 changes: 1 addition & 1 deletion immer/set.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class set
public:
using value_type = T;
using size_type = detail::hamts::size_t;
using diference_type = std::ptrdiff_t;
using difference_type = std::ptrdiff_t;
using hasher = Hash;
using key_equal = Equal;
using reference = const T&;
Expand Down
2 changes: 1 addition & 1 deletion immer/set_transient.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class set_transient : MemoryPolicy::transience_t::owner

using value_type = T;
using size_type = detail::hamts::size_t;
using diference_type = std::ptrdiff_t;
using difference_type = std::ptrdiff_t;
using hasher = Hash;
using key_equal = Equal;
using reference = const T&;
Expand Down
2 changes: 1 addition & 1 deletion immer/table.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class table
using mapped_type = T;
using value_type = T;
using size_type = detail::hamts::size_t;
using diference_type = std::ptrdiff_t;
using difference_type = std::ptrdiff_t;
using hasher = Hash;
using key_equal = Equal;
using reference = const value_type&;
Expand Down
2 changes: 1 addition & 1 deletion immer/table_transient.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class table_transient : MemoryPolicy::transience_t::owner
using mapped_type = T;
using value_type = T;
using size_type = detail::hamts::size_t;
using diference_type = std::ptrdiff_t;
using difference_type = std::ptrdiff_t;
using hasher = Hash;
using key_equal = Equal;
using reference = const value_type&;
Expand Down

0 comments on commit f9874f6

Please sign in to comment.