When I read the description for the vector class, it already use the default standard allocator. So what is the different between my two code examples, if any?
I'm just curious to know if there is a better performance using the second method.
std::vector has std::allocator as default allocator, so there's no difference between the two declarations above. The second one is just being explicit on the allocator