added insert(iterator, value_type)
authorChristian Bauer <Christian.Bauer@uni-mainz.de>
Wed, 1 Oct 2003 17:42:54 +0000 (17:42 +0000)
committerChristian Bauer <Christian.Bauer@uni-mainz.de>
Wed, 1 Oct 2003 17:42:54 +0000 (17:42 +0000)
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)
        {