Rapidxml parsing the value of the modified memory

Source: Internet
Author: User

1, when using rapidxml parsing, special attention, Rapidxml will modify the value of memory, the right angle brackets > modified to ' ", so pay special attention, if the char pointer to the content to use, you need to make a backup.

2, if the char pointer points to the content, no longer used, do not need to do a backup, Rapidxml will directly modify the memory. Don't forget to delete [] release resources at this time. Delete Frees memory, has no relation to the value in memory, and the value is 0, which also frees memory correctly. Using new to allocate 8 bytes of memory, the operating system allocates some more memory, and the extra memory records how much memory is allocated so that when released, you know how much memory should be freed.

Rapidxml parsing the value of the modified memory

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.