|
|
Warp wrote:
> Wolfgang Wieser <wwi### [at] gmxde> wrote:
>> So, if you need a local variable of just such a type we're talking about,
>> i.e. a class which simply contains a pointer to an internal class,
>> then the class will be allocated on the stack (okay, fast) and the
>> internal class will be allocated using operator new on the heap.
>
> I still not understand that if you want a container of static size
> why would be use a dynamic container for that.
> Make a container with static size which does not allocate memory and
> there you are.
>
Please have a look at the example code in the other posting nearby.
Wolfgang
Post a reply to this message
|
|