
1 Jun
2006
1 Jun
'06
4:49 p.m.
Konstantin Litvinenko wrote:
Hello, All!
I have a couple of questions about ptr_container library. Specificaly
1) Why ptr_multimap_adapter::insert has non const key_type argument?
This is due to exception-safety concerns. If the construction of the key can throw, the heap allocated object can throw.
2) Why ptr_multimap_adapter::transfer( iterator object, ptr_multimap_adapter& from ) has void return type instead of iterator?
Why do you think it should return an iterator? -Thorsten