
22 Jun
2007
22 Jun
'07
12:32 p.m.
Seweryn Habdank-Wojewódzki skrev:
Hi!
Is there any smart_ptr and ptr_container that can transfer ownership of pointer, to avoid useless copy-construction and destruction of the object.
I guess you can't release a shared_ptr, even though it's use count is 1. Peter, any reason for not having a release() given that its precondition is unique() is true?
Maybe I have to use vector
instead of ptr_container?
Seems like it. -Thorsten