Thread: Allocator

  1. #1
    Registered User
    Join Date
    Oct 2005
    Location
    Brasil
    Posts
    220

    Allocator

    Hey, any good resource on how can i create an allocator? (std::map)

  2. #2
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    "Effective STL" by Scott Meyers has a chapter on allocators.
    "The C++ Language" by Bjarne Stroustroup has a huge chapter on that.

  3. #3
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    What kind of allocator do you need? If you need a pool allocator (which is a common example) and you're not doing it for learning purposes, I'd prefer boost's pool allocator over writing my own.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. vector constructor
    By R.Stiltskin in forum C++ Programming
    Replies: 11
    Last Post: 12-09-2008, 08:28 PM
  2. Polynomials and ADT's
    By Emeighty in forum C++ Programming
    Replies: 20
    Last Post: 08-19-2008, 08:32 AM
  3. define max length for allocator
    By George2 in forum C++ Programming
    Replies: 4
    Last Post: 02-28-2008, 09:07 PM
  4. allocator implementation
    By George2 in forum C++ Programming
    Replies: 4
    Last Post: 02-28-2008, 05:39 AM
  5. storage allocator without malloc
    By lectrolux in forum C Programming
    Replies: 8
    Last Post: 05-07-2003, 05:43 AM