Does the STL vector class delete the allocated memory for its elements when it calls its clear() method or does it just remove them from the vector's list, but leave the memory untouched?

I have vectors storing pointers to allocated memory and would like to ensure the memory is deleted too as it clears the vector (don't want those memory leaks do we).

Thanks in Advance.