Logo Search packages:      
Sourcecode: maqview version File versions  Download package

template<class keytype_t >
bool hash_set_misc< keytype_t >::insert ( const keytype_t &  key ) [inline]

insert a key

Definition at line 412 of file stdhash.hh.

References __lh3_hash_base_class< keytype_t >::flags, __lh3_hash_base_class< keytype_t >::n_capacity, __lh3_hash_base_class< keytype_t >::n_occupied, __lh3_hash_base_class< keytype_t >::n_size, and __lh3_hash_base_class< keytype_t >::rehash().

            hashint_t i;
            int ret = direct_insert_aux(key, this->n_capacity, this->keys, this->flags, &i);
            if (ret == 0) return true;
            if (ret == 1) { ++(this->n_size); ++(this->n_occupied); }
            else ++(this->n_size); // then ret == 2
            return false;

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index