4 Mar
2010
4 Mar
'10
2:11 p.m.
Hi, I was trying out some examples of using multi_index_container with custom allocator. I found out that even an empty container, on creation, allocates memory for a single node (but no element is stored inside). In other words, if I store N elements, the container allocates memory for N+1 elements. Is it a fault? If not, what is this memory used for? Is there any way to avoid this allocation? Regards, Jakub