Advertisement
Guest User

Untitled

a guest
Nov 26th, 2015
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.75 KB | None | 0 0
  1. const_iterator & operator++()
  2.                 {
  3.                     if(*this == Map->end())  return *this;
  4.  
  5.                     if(Node->Next)
  6.                     {
  7.                         Node = Node->Next;
  8.                         return *this;
  9.                     }
  10.  
  11.                     if(Node->Hash < Map->MaxHash)
  12.                     {
  13.                         size_type NodeHash = Node->Hash + 1;
  14.                         while(Map->tab[NodeHash] == NULL) NodeHash++;
  15.                         Node = Map->tab[NodeHash];
  16.                         return *this;
  17.                     }
  18.                     else
  19.                     {
  20.                         Node = NULL;
  21.                         return *this;
  22.                     }
  23.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement