Scattered records of STL Learning (constantly updating), and stl learning is constantly updated

Source: Internet
Author: User
Tags bitset

Scattered records of STL Learning (constantly updating), and stl learning is constantly updated
I write what I use, so I don't pay too much attention to typographical layout. I will sort it out after I write too much:


1: vector <int> V, V. pop_back () the last element is displayed.

2: The iterator cannot be set for the priority queue because there is no

3:

# Include <bitset> // bitwise operation

String str2 (str,); // truncate the str string Array 0 ~ Element 7, which comes with the string function bitset <8> aaa (str2); // bitset <n> is also in stl, the usage is to set aaa to take up eight memory units (1 byte), where the first eight bits of str are 01010. compress eight bytes into one byte char greatch = (char) aaa. to_ulong (); // then convert aaa to char type to a byte, that is, the previous eight bytes are converted into one byte through binary compression. erase (); // Delete the first eight digits of str

5:


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.