When you use an initializer_list in a range for would you ever use a reference as the loop control variable? If so, why? If not, why not
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:6| Question number:29
All Answers
total answers (1)
Yes, I would use a reference as the loop control variable. So that we don't need to copy the value from the
need an explanation for this answer? contact us directly to get an explanation for this answer`initializer_list`
.