Logo Search packages:      
Sourcecode: maq version File versions

template<class valtype_t>
void hash_map_char< valtype_t >::rehash (  )  [inline, private]

Test whether rehashing is needed and perform rehashing if this is the fact.

Reimplemented from __lh3_hash_base_class< char * >.

Definition at line 589 of file stdhash.hh.

                           {
            if (this->n_occupied >= this->upper_bound) {
                  if (this->n_capacity > (this->n_size<<1)) resize(this->n_capacity - 1);
                  else resize(this->n_capacity + 1);
            }
      }


Generated by  Doxygen 1.6.0   Back to index