[Insight-users] VectorContainer, removing element

Laurent Mundeleer lmundele at ulb.ac.be
Thu, 05 Feb 2004 16:26:26 +0100


Hi Brad,
I use it to manage seeds for a level set.

thanks for the answer

Laurent

Brad King wrote:

> Laurent Mundeleer wrote:
>
>> Hi all,
>>
>> I can't figure how to remove an element anywhere in a VectorContainer 
>> (like erase(pos) in stl) ??
>
>
> The class derives from std::vector, so the same methods should be 
> available.  However, you should know that itk::VectorContainer is used 
> by itk::Image to manage memory for pixel buffers.  It is not intended 
> to be used as a general-purpose container by user code.
>
> -Brad
>
>

-- 
********************************************
Laurent Mundeleer
Université Libre de Bruxelles (ULB)
Service des Systèmes Logiques et Numériques (SLN) CP165/57
50, Av. F.Roosevelt
1050 Bruxelles
Belgium
tel : ++32.2.650.22.97
fax : ++32.2.650.22.98
e-mail : lmundele at ulb.ac.be
********************************************