C + + standard library concepts and common tools for libraries

Source: Internet
Author: User
Tags terminates

The so-called namespace of the using namespace STD is a way to encapsulate the library name as if it were erected a fence in the library

Some of the standard libraries, such as string classes, support specific error handling, check for all possible errors, and throw exceptions when an error occurs. For other parts such as STL and valarrays, efficiency is more than security, so logic errors are rarely checked and exceptions are thrown only when the runtime has an exception.

The allocator class is a template for C + + that provides typed memory allocations and the allocation and revocation of objects.

Exit () destroys all the static objects, empties all buffers (flushes), closes all I/O channels, and then terminates the program.

Abort () terminates the function immediately, but does not do any clean up work.

C + + standard library concepts and common tools for libraries

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.