S
Shoban Jeyaraj
Hello,
I am an newbiew with respect to creating custom allocator. Currently,
we are in the process of creating a custom allocator. Going through
most of the example, we have one which requires to specify the type
while specifying the allocator:
Eg: vector<int, my_allocator<int> > foo;
I know that the default allocator malloc_alloc does not require the
type.
Eg: vector<int, malloc_alloc> foo;
I am wondering how it is implemented. Going through the STL source
(stl_alloc) does not help me much. Hope someone can clarify.
Regards,
Shoban Jayaraj
I am an newbiew with respect to creating custom allocator. Currently,
we are in the process of creating a custom allocator. Going through
most of the example, we have one which requires to specify the type
while specifying the allocator:
Eg: vector<int, my_allocator<int> > foo;
I know that the default allocator malloc_alloc does not require the
type.
Eg: vector<int, malloc_alloc> foo;
I am wondering how it is implemented. Going through the STL source
(stl_alloc) does not help me much. Hope someone can clarify.
Regards,
Shoban Jayaraj