X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fhash_map.h;h=b161c9e358d05787d5f373e9ad9fdbdc591efb63;hp=839b8238f8402c78ded1c0c4dea3bce19e278d0a;hb=d54e497297f4687c385ff8fbc91296365887c7c0;hpb=5e1d38fb7294baa1922341021698a2106238b571 diff --git a/ginac/hash_map.h b/ginac/hash_map.h index 839b8238..b161c9e3 100644 --- a/ginac/hash_map.h +++ b/ginac/hash_map.h @@ -73,7 +73,6 @@ class exhashmap; * * Differences to map<>: * - no lower_bound()/upper_bound() - * - no "insert with a hint" insert(iterator, key_type) * - no reverse iterators, no rbegin()/rend() * - no operator<() * - comparison functor is hardcoded to ex_is_less @@ -254,13 +253,6 @@ protected: return num_buckets - (num_buckets >> 2); } - /** Empty all buckets in the table. */ - void empty_all_buckets() - { - for (table_iterator i = hashtab.begin(); i != hashtab.end(); ++i) - i->first = EMPTY; - } - void grow(); public: @@ -343,6 +335,11 @@ public: // Modifiers std::pair insert(const value_type &x); + iterator insert(iterator pos, const value_type &x) + { + return insert(x).first; + } + template void insert(InputIterator first, InputIterator last) {