Skip to content

Commit

Permalink
hashlib: constify const_iterators
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravenslofty committed Jan 4, 2024
1 parent d26da7b commit 979686c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions common/kernel/hashlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,8 @@ template <typename K, typename T, typename OPS> class dict
using iterator_category = std::forward_iterator_tag;
using value_type = std::pair<K, T>;
using difference_type = std::ptrdiff_t;
using pointer = std::pair<K, T>*;
using reference = std::pair<K, T>&;
using pointer = const std::pair<K, T>*;
using reference = const std::pair<K, T>&;
const_iterator() {}
const_iterator operator++()
{
Expand Down Expand Up @@ -831,8 +831,8 @@ template <typename K, typename OPS> class pool
using iterator_category = std::forward_iterator_tag;
using value_type = K;
using difference_type = std::ptrdiff_t;
using pointer = K*;
using reference = K&;
using pointer = const K*;
using reference = const K&;
const_iterator() {}
const_iterator operator++()
{
Expand Down Expand Up @@ -1068,8 +1068,8 @@ template <typename K, int offset, typename OPS> class idict
using iterator_category = std::forward_iterator_tag;
using value_type = K;
using difference_type = std::ptrdiff_t;
using pointer = K*;
using reference = K&;
using pointer = const K*;
using reference = const K&;
const_iterator() {}
const_iterator operator++()
{
Expand Down

0 comments on commit 979686c

Please sign in to comment.