Objective C ++ Study Notes (Part Three: Item 13-17), effective13-17
Zookeeper
Recently, I finally carefully read javastvie C ++, and I was amazed at the power and charm of C ++. I will keep my recent reading experiences and Reading Notes here recently. It is essential to find and use them. If you sum up any mistakes, please criticize and correct them:
Now, only the framework is listed, and it will be completed as soon as possible:
Part 1: Resource Management)
I personally think this is a key part of C ++. Good use can help projects save resources and rationally use memory resources to prevent memory leaks. The word "resource" may have just been in touch and is abstract. But it is very specific for you to combine it with the actual situation!
Clause 13: object-oriented resource management
Clause 14: lightweight coping in resource management
Clause 15: Provide access to original resources in resource management
Clause 16: The new and delete pairs must be in the same format.
Clause 17: place a newed object in an independent statement
Note: As there are many links between the terms, some of them are not suitable to be pulled out separately. This will be recorded in conjunction with other terms. If you have any questions, please contact us;