|
|
|
|
|
by lonelappde
2362 days ago
|
|
It's an algorithm problem, not a C++ problem. Also, iterators prevent random access. You can always get iterators from a vector if you need them. And mutability is provided for convenience and because const doesn't matter in this situation. |
|
http://www.cplusplus.com/reference/iterator/RandomAccessIter...