C ++ STL container BASICS (1)

Source: Internet
Author: User

The vector is like a garden that holds variable-length arrays, about all STLContainerHalf of them are vector-based. If you have mastered thisProgramYou have almost mastered half of the entire STL.

Http://www.cppblog.com/yehongly/archive/2008/07/08/38224.html

Instance:

Http://www.cnblogs.com/yukaizhao/archive/2010/07/28/cpp-vector.html

To be supplemented and improved

Application of function imitation:

Http://hi.baidu.com/0wingbinging/blog/item/a3c3880578f3e9c67b89479a.html

Http://hi.baidu.com/aidyhua/blog/item/45a8f51d2a85fd8086d6b66a.html

Boost: Any implements multiple types of objects in a container:

Http://hi.baidu.com/hins_pan/blog/item/ccaa574d504b3be6d72afcd3.html

Element Types in the ordered container
Value_type
There is also a reference, that is, value_type &
There is also const_reference, Which is const value_type &

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.