glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [glob2-devel] question about std::list


From: Stéphane Magnenat
Subject: Re: [glob2-devel] question about std::list
Date: Sat, 5 May 2007 14:06:56 +0200
User-agent: KMail/1.9.6

> i have no clue what fits the situation better. list or vector?
> in my eyes we can go for vector just as well in this case. it uses less
> memory and list has no functionality we need here that vector can't do.

vector is better if you always add/remove in the end. queue is better if you 
add/remove in the end/front, list is better if you add/remove in the middle.

Steph

-- 
http://stephane.magnenat.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]