std::forward_list and std::forward_list::push_back
I recommend against std::forward_list just like I recommend against std::list in almost all situations. Personally, I’ve never found a situation in my code where a linked list was the best data structure. In C++, your default go-to data collection should be std::vector. It gives you efficient push_back, if that is what you really need. It … Read more