Search:
Forum
General C++ Programming
vector multi template argument
vector multi template argument
Apr 13, 2023 at 4:22pm UTC
marhuum
(181)
what multi template argument in vector seen eg.
std::vector<_Tp, _Alloc>::reference
Apr 13, 2023 at 5:11pm UTC
doug4
(1538)
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.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs