Previously I used to use MFC collection classes such CArray and CMap. After a while I switched to STL containers and have been using them for a while. Although I find STL much better, I am unable to pin point the exact reasons for it. Some of the reasoning such as :
- It requires MFC: does not hold because other parts of my program uses MFC
- It is platform dependent: does not hold because I run my application only on windows.
- It is defined in the C++ standard: OK, but MFC containers still work
The only reason I could come up is that I can use algorithms on the containers. Is there any other reason that I am missing here which makes STL containers 'better' than MFC containers?