C + + Standard Template Library (STL) learning

Source: Internet
Author: User

1. What is Standard Template Library STL

Before you have learned the declaration and use of function templates and class templates, the previous template is designed by the programmer himself according to their own needs, from their own to declare the template to the last to use

Templates are done by themselves, and these standard template libraries are not written by ourselves, but by some of the great gods, because they often use common templates during programming, and each time

All need to repeat the creation of the template, over time, these great gods will be these common and very useful templates into a template library form, also formed the current use of the Standard Template Library STL. With me

As well as the standard library of functions.

STL consists of 3 parts: Algorithm (algorithm), container (container), and iterator (iterator)

Container: A container is a structure used to store data, such as arrays,

2, the use of STL

(1) This article mainly introduces

C + + Standard Template Library (STL) learning

Related Article

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.