For each stl container in Visual C ++, there is an MFC container that is better than the other, in what sense and what are you using?
I always use the STL container, is this wrong?
MFC collection classes have certain advantages if you work within the MFC territory. For example. you get things like serialization (if your container elements are inherited from CObject or similar) and some debugging support for "free". MSDN has a breakdown of how to choose between the different types of MFC collections [here] ( http://msdn.microsoft.com/en-us/library/y1z022s1(VS.80).aspx) .
By default, I tend to STL classes.
I would always prefer STL containers because of portability.
MFC containers will almost never be available on Linux.
Even if you do not plan to use your code on Linux ... you never know what the future brings.
STL, , : . , , STL , . ? STL ++, , , -, STL, MFC, , - STL.
:
", , . MFC . ++ , ++. MFC.
.
Vsual ++ "
. STL Boost (www.boost.org).
STL. .
STL : , . : , Boost, . , Alexandrescu Modern ++ Design: . Boost STL .
- , , S TL: S tandard ", M FC M icrosoft". ++-, , STL, Microsoft MFC. , Microsoft MFC.
Even when they show you numbers that MFC containers are faster, they can, without exception, make free double espressos: just close your eyes and use the DEL key (also the NO-LOCK-IN key).
You can do all this in a more portable way and in plagiaristic ways that you can only dream of. STL completely.
Source: https://habr.com/ru/post/1708003/More articles:HAProxy load balancer before Django instances - djangoHow does garbage collection in Python work with class methods? - pythonUsing virtualenv on Mac OS X - pythonWindows: how to display a non-blocking Alert / Confirmation window? - windowsLarge initial amount of memory for a native application - c ++Implementation of the destruction of the landscape, for example, the game Scorched Earth on iphone or Java - javaЯвляется ли это хорошей схемой базы данных платежных карт? - databaseUsing JSON from Processing-JS - jsonif I have Windows, Mac and Linux, what is the easiest way to set up an SVN server? - svnHow to make layered Drop down navigation in a WordPress theme? - wordpressAll Articles