[Dune] allocators... dingleton vs. instance
Markus Blatt
markus at dr-blatt.de
Wed Oct 3 12:09:22 CEST 2012
On Wed, Oct 03, 2012 at 10:17:45AM +0200, Markus Blatt wrote:
> On Tue, Oct 02, 2012 at 10:32:58PM +0200, Christian Engwer wrote:
> >
> > Assume the following:
> >
> > AllocatorType<Foo> alloc1;
> > AllocatorType<Foo> alloc2;
> > Foo * f = alloc1.allocate(1);
> > alloc2.deallocate(f,1);
> >
>
> One might want to implement an allocator that manages allocation in
> a memory chunk allocated in the initializer.
>
> Indeed there is nothing in the standard about it. Maybe ask on a list?
>
BTW: why would anybody intentionally write such code as above?
Markus
--
Do you need more support with DUNE or HPC in general?
Dr. Markus Blatt - HPC-Simulation-Software & Services http://www.dr-blatt.de
Hans-Bunte-Str. 8-10, 69123 Heidelberg, Germany
Tel.: +49 (0) 160 97590858 Fax: +49 (0)322 1108991658
More information about the Dune
mailing list