13 try to use STL instead of ACE containers
This is purely personal perception (prejudice ). I have the following reason not to use the ACE container:
L some implementations do not conform to everyone's understanding of containers. For example, ACE_DLList stores object pointers instead of copying objects. You must also remember to release the internal management pointer of ACE_DLList.
L The iterator of the ACE container does not meet the STL requirements, and thus the ACE container cannot use various STL template algorithms and functions. The ACE container cannot lose the STL algorithm.
L STL has been widely implemented in the current compiler. It is not easy to find a compiler that does not support STL.
L ACE containers have a large number of pointers in the middle, so ACE containers cannot be used in shared memory. There is no essential difference between its application scenarios and STL.
ACE's document The. ACE. Programmers. Guide also says:
That being said, the standard C ++ containers are recommended for application development when you are using ACE.
Therefore, STL is preferred when STL is available.