Explain the differences among the three kinds of insert iterators
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:10| Question number:26
All Answers
total answers (1)
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:10| Question number:26
total answers (1)
`back_inserter`always inserts element at the end of the container by calling`c.push_back()`.`front_inserter` always inserts element at the beginning of the container by calling`c.push_front()`.`inserter`always insert element at the front of the same given element in the container by calling`c.insert()`.
need an explanation for this answer? contact us directly to get an explanation for this answer