]> www.ginac.de Git - ginac.git/blobdiff - ginac/hash_map.h
added insert(iterator, value_type)
[ginac.git] / ginac / hash_map.h
index 108fb2fb51ed244dc580732566a02cca2e9ccabc..df5a674b5f51dc62c9e702fdd744dbef8951a575 100644 (file)
@@ -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<iterator, bool> insert(const value_type &x);
 
+       iterator insert(iterator pos, const value_type &x)
+       {
+               return insert(val).first;
+       }
+
        template <class InputIterator>
        void insert(InputIterator first, InputIterator last)
        {