STL sequential containers like vector, deque, list support insert to insert elements before given iterator to support statements like
vector.insert(std::end(container), container2.begin(), container2.end())
Whereas forward_list supports insert_after. Why STL maintainers had to make this design choice?
Aucun commentaire:
Enregistrer un commentaire