If you want to iterate over your list you can iterate over elements of std::map as well.
But if you iterate more often than search/add/remove, then std::vector may be more efficient
The general idea should often be to use either vector or deque if you don't know what to use, and measure if performance comes into question. the number of times I see people using std::map to store less than 20 elements when std::vector with a linear search is order of magnitudes faster is mind boggling
Ludovic 'Archivist'
Chat Boss
Pavel
Emanuele
01001000001001100101
klimi
Hima
Houdaifa
Arnold
Yash
Shaonianan
Mahdiy
Think Like A Computer Scientist !
ㅤ
MHD