Try to use STL instead of ACE containers

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.