help-gplusplus
[Top][All Lists]
Advanced

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

Re: How to allocate memory for a fixed size array


From: Paul Pluzhnikov
Subject: Re: How to allocate memory for a fixed size array
Date: Fri, 22 Sep 2006 13:39:20 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)

vfunc@talktalk.net writes:

> How do I allocate memory for a large (10,000+) fixed size array ?

Any way you wish:

  malloc(size);
  mmap(0, size, ... MAP_ANON, ...);
  std::vector<...> v(size);

> In this case complexity is critical so I do not
> want to use std:vector or some other dynamic structure.

Come again?

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.


reply via email to

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