vector multi template argument

what multi template argument in vector seen eg.

std::vector<_Tp, _Alloc>::reference
https://cplusplus.com/reference/vector/vector/

_Tp is the data type of the members of the vector
_Alloc is the memory allocator, which defaults to allocator<_Tp>. Unless you are writing/using a custom memory manager, you can probably ignore the second template argument.
Topic archived. No new replies allowed.