Alex Rivera | Logout

What is the difference between const_iterator and non-const iterator in the C++ STL?

Asked 2008-11-21T17:36:25.023
177

What is the difference between a const_iterator and an iterator and where would you use one over the other?

Edit
Report

1 Answer

7

Use const_iterator whenever you can, use iterator when you have no other choice.

answered 2008-11-21T17:51:33.607

Your Answer