What is the difference between the begin and cbegin functions
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:9| Question number:9
All Answers
total answers (1)
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:9| Question number:9
total answers (1)
Those that start with a
`c`
return the`const`
version of the related iterator. For example,`begin()`
will return an`iterator`
while`cbegin()`
will return a`const_iterator`
.