125
125
update(const KeyType& key, ELEMENT element)
127
127
// to avoid memory leak in case of exception we use an auto_ptr
129
129
chamaeleonPtr(new Chamaeleon<ELEMENT>(element));
130
130
instances_.update(key, chamaeleonPtr.get());
131
131
// release the auto_ptr, everything went fine, registry takes