[Insight-developers] Class for maintaining list of objects?

Brad King brad.king@kitware.com
Tue, 6 Feb 2001 18:05:42 -0500 (EST)


Actually, I think we want

std::list<itk::LightObject::ConstPointer>

unless you are planning on modifying the objects in the list.

-Brad

On Tue, 6 Feb 2001, Bill Hoffman wrote:

> You want this:
> 
> std::list<itk::LightObject::Pointer> 
> 
> It will use the smart pointer and the reference counting should work.
> 
> -Bill
> 
> 
> At 04:23 PM 2/6/2001 -0500, Parag Chandra wrote:
> >Hi,
> >I need to maintain a variable-length list of lightweight objects, and was going to use the STL list for this, but I thought I should check to see if there is some ITK class that does the same thing?
> > 
> >Thanks,
> >-Parag
>