Group: comp.lang.c++
From: Razii
Date: Sunday, April 13, 2008 1:56 PM
Subject: Re: Do you use a garbage collector?

On Sun, 13 Apr 2008 15:10:38 +0200, "Bo Persson" wrote:

>I can have a std::vector or a std::deque and don't have to
>use new in my code. The container can grow as needed.

How does std::vector keeps growing? Doesn't it allocates larger and
larger blocks of memory? Doesn't vector call the allocate method of
an instance object you are adding to get hold of memory? You didn't
remove 'new' from your code. the 'new' and 'delete' are in the vector
source code.