Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
markisus
· 2y ago · 0 comments
In my example, the T is one specific type. So you could have std::vector<Cat>. If you also have Dogs, you just make another vector std::vector<Dog>. It works fine with the standard allocator. You don't have to do anything special.
Comments
[–]
neeeeees
2y ago
Ah okay that makes sense to me