[Insight-users] itk::SmartPointers and STL?

Parag Chandra pchandra@radonc.unc.edu
Wed, 19 Mar 2003 11:12:57 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_006D_01C2EE08.7EFB1B50
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all,

I need to maintain lists of ITK classes (via corresponding =
SmartPointers) in my application. I thought I remember something about =
STL and SmartPointers not behaving well because of copy semantics, so =
what is the approach I should take to putting ITK classes into STL =
containers? Does the itkVectorContainerInterface automatically handle =
these details for me? Thanks.

Best regards,
-Parag Chandra

------=_NextPart_000_006D_01C2EE08.7EFB1B50
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I need to maintain lists of ITK classes =
(via=20
corresponding SmartPointers) in my application. I thought I remember =
something=20
about STL and SmartPointers not behaving well because of copy semantics, =
so what=20
is the approach I should take to putting ITK classes into STL =
containers? Does=20
the itkVectorContainerInterface automatically handle these details for =
me?=20
Thanks.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Best regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>-Parag Chandra</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_006D_01C2EE08.7EFB1B50--