c++ Programming Glossary: gc_allocator
templated typedef? http://stackoverflow.com/questions/649718/templated-typedef make STL containers garbage collectible one must use the gc_allocator. Instead of writing std vector MyType one has to write std vector.. std vector MyType one has to write std vector MyType gc_allocator MyType Could there be a way to define something like template.. something like template class T typedef std vector T gc_allocator T gc_vector T I checked some time ago and found out it was not..
C++ standard library and Boehm garbage collector http://stackoverflow.com/questions/8016945/c-standard-library-and-boehm-garbage-collector provided by the C standard library. Boehm's GC provide a gc_allocator T template in its file gc gc_allocator.h . Should I redefine.. GC provide a gc_allocator T template in its file gc gc_allocator.h . Should I redefine operator new as Boehm's one Or should.. with an explicit allocator template argument set to some gc_allocator I don't understand exactly the role of the second template argument..
|