2 ms·
"C++ stdlib provides almost exclusively data structures you shouldn't use" The containers according to [1] are array, vector, deque, forward_list, list, *set,
by blub 5y ago
"C++ stdlib provides almost exclusively data structures you shouldn't use"
The containers according to [1] are array, vector, deque, forward_list, list, *set, *map, stack, queue and priority_queue. All of these are good general implementations that can and should be used for most C++ software.
Some classes of software require better performance or certain special guarantees and then it makes sense to consider specialized implementations.
[1] https://en.cppreference.com/w/cpp/container https://en.cppreference.com/w/cpp/container