|
|
|
|
|
by duneroadrunner
3132 days ago
|
|
The problem with trying to substitute lists with vectors is that their iterators behave differently. I.e. vector iterators point to positions rather than elements and are prone to being invalidated. So sometimes it's nice to have a vector that supports iterators that behave like list iterators[1]. [1] shameless plug: https://www.codeproject.com/Articles/1087021/Stable-Iterator... |
|