Possible duplicate:
what returns malloc (0)?
Does it return a null pointer? Is the behavior standardized?
What about the STL dispenser?
I searched for it, but could not determine the answer I was looking for.
EDIT: The related question does not explain the STL allocator.
I have another important question. What happens if you try to free a null pointer?
allocator.deallocate(0, 1);
pic11 source share