Why STL containers are preferred over MFC containers?

后端 未结 13 1780
时光说笑
时光说笑 2021-01-30 22:24

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.

13条回答
  •  死守一世寂寞
    2021-01-30 22:51

    I think it boils down to a simple question: Who do you trust more? If you trust Microsoft, then continue to use the MFC variants. If you trust the industry, then use STL.

    I vote for STL because the code that runs on Windows today might need to be ported to another platform tomorrow. :)

提交回复
热议问题