The second stack stack of STL series

Source: Internet
Author: User

Stack (STATCK) This data structure is quite famous in the computer. The data in the stack is advanced (first in the last out, FILO). The stack has only one exit, allowing new elements (which can only be added on top of the stack), moving out of the element (only the top of the stack), and getting the top element of the stack. in STL, the stack is the other container as the bottom structure, then the interface changes, so that it conforms to the characteristics of the stack. So the implementation is very convenient. The following is a list of the functions of the stack and the source code of the stack in the VS2008, in the STL stack of 5 commonly used operation functions (Top (), push (), pop (), size (), empty (), very good to remember.

The second stack stack of STL series

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.