As you can see, the template takes two parameters, but the second one is optional.
vector Reference wrote:
Allocator: Type of the allocator object used to define the storage allocation model. By default, the allocator class template for type T is used, which defines the simplest memory allocation model and is value-independent.