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=108fb2fb51ed244dc580732566a02cca2e9ccabc;hb=d54e497297f4687c385ff8fbc91296365887c7c0;hpb=16fa313d8f35d5b47fa2ce1c5a581d312b49ff0c;ds=sidebyside diff --git a/ginac/hash_map.h b/ginac/hash_map.h index 108fb2fb..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 @@ -336,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) {