Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Inherit hash iterators from std::iterator

  • Loading branch information...
commit 66a527b13b4419c1cebebcea1041432a49db29dc 1 parent 18ad385
@pmachata authored
Showing with 2 additions and 0 deletions.
  1. +1 −0  hash.cc
  2. +1 −0  hash.hh
View
1  hash.cc
@@ -151,6 +151,7 @@ tests ()
++it;
++jt;
assert (it == jt);
+ assert ((size_t)std::distance (h.begin (), h.end ()) == vals.size ());
}
std::cout << "2" << std::flush;
{
View
1  hash.hh
@@ -111,6 +111,7 @@ private:
template<class This, class Hashtab>
class iterator_builder
+ : public std::iterator<std::forward_iterator_tag, value_type>
{
protected:
Hashtab _parent;
Please sign in to comment.
Something went wrong with that request. Please try again.