I was wondering:
how come the stl map class does not have a reserve function like the
useful vector::reserve function?
I was thinking about implementing my own reserve class, by providing
my own allocator, inherting a new class from map, and add it a reserve
function that will work on my allocator and ask it to reserve memory
for future use.
however, I don't know how to call the map's Allocator instance in
order to reserve the memory. can anyone please help?
thanks,
liran
how come the stl map class does not have a reserve function like the
useful vector::reserve function?
I was thinking about implementing my own reserve class, by providing
my own allocator, inherting a new class from map, and add it a reserve
function that will work on my allocator and ask it to reserve memory
for future use.
however, I don't know how to call the map's Allocator instance in
order to reserve the memory. can anyone please help?
thanks,
liran
Comment