From 9cd789be913f4fcd4b615cefa3d46662b3c63a46 Mon Sep 17 00:00:00 2001 From: Christian Bauer Date: Wed, 1 Oct 2003 17:42:54 +0000 Subject: [PATCH] added insert(iterator, value_type) --- ginac/hash_map.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ginac/hash_map.h b/ginac/hash_map.h index 108fb2fb..df5a674b 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(val).first; + } + template void insert(InputIterator first, InputIterator last) { -- 2.45.1