Boost logo

Boost Users :

From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2006-06-01 12:49:17


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net