28 Jul
2010
28 Jul
'10
4:55 p.m.
Thorsten Ottosen
archie14 skrev:
I have an instance of ptr_map
. I need to release an element
from the map and use it somewhere else...
Does
ptrmaptype::auto_type ptr = val.release(val.begin());
not work??
Then you can call ptr.release() to get the naked ptr.
HTH
-Thorsten
Yes, it works, thanks for the help. I think that I started with auto_type, got compile error and moved to try other types. Now it works. Thanks again.