You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We mention containers, but we don't really say when you should use those. Is it wise to discuss this in the advanced course?
Should we even create an exercise, or write something on quickbench that we can show in the slides?
The text was updated successfully, but these errors were encountered:
I would say that most of the interesting containers are actually not in the STL (yet) :) The goto is std::vector. I don't think there are many good cases for std::list etc. We could show a benchmark here, but we could also just tell the students they should not use it :) std::deque is useful if you want iterator and reference stability when resizing, but then we need to discuss this. We could throw in std::array maybe.
More interesting containers in my option would be e.g. boost::static_vector<T, N> , boost::small_vector<T> or boost::circular_buffer. There is also std::hive coming up (a bucket array).
So bottom line: I would not know what to put into such an exercise. We could make a container exercise though, that just uses a bunch of vectors.
This issue or pull request has been automatically marked as stale because it has not had recent activity. Please manually close it, if it is no longer relevant, or ask for help or support to help getting it unstuck. Let me bring this to the attention of @klieret@wdconinc@michmx for now.
We mention containers, but we don't really say when you should use those. Is it wise to discuss this in the advanced course?
Should we even create an exercise, or write something on quickbench that we can show in the slides?
The text was updated successfully, but these errors were encountered: