Y
Hacker News
new
|
ask
|
show
|
jobs
by
gsliepen
800 days ago
There is a lesser known cousin to std::vector that doesn't have to move nor copy its elements when adding new elements, and that is std::deque.
1 comments
vardump
799 days ago
Right. But of course std::deque comes with a cost; iteration is slower and memory footprint is bigger.
link