Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Re: Does anyone has fixed size memory allocator code?

Thread Tools

Re: Does anyone has fixed size memory allocator code?

Posts: n/a
On 20 Jun 2004 07:58:25 -0700, Removed) (Min-Koo Seo)

>I am reading Effective C++ by Scott Myers. In item 10, there is a
>question for readers: writing generalized fixed size memory allocator.
>I tried to solve the problem, but I couldn't. To allocate for memory
>for any objects, I need declare a void *. But, AFAIK, void * does not
>support + operator, making the solution complicated.
>If you solved the problem, or know where the answer is, then please
>let me know.

Check out Loki's small object allocator: (and read the book for the how-to).

Alternatively, boost's pool library also does this. See

C++ FAQ:
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Which allocator to use? For fixed-size, single-thread, pooled allocation? C++ 5 07-19-2006 10:13 PM
fixed type allocator - Intel IPP Joshua Kolden C++ 2 05-29-2005 11:12 AM
How to set the DataGrid Row Size to a fixed size. =?Utf-8?B?QmlkYXJrb3Rh?= ASP .Net 0 05-19-2005 08:14 PM
Has anyone ever fixed this ... Sticky NZ Computing 8 05-17-2005 10:28 AM
Re: Does anyone has fixed size memory allocator code? Min-Koo Seo C++ 0 06-21-2004 03:06 PM