5,321
edits
(→RAII) |
(→RAII) |
||
Line 657: | Line 657: | ||
For instance, the resource for a vector is an allocated amount of memory. Once the vector is destroyed and the destructor called, the resource is released.<br> | For instance, the resource for a vector is an allocated amount of memory. Once the vector is destroyed and the destructor called, the resource is released.<br> | ||
If you need any from one of the rules, you need to implement the remainder | |||
Rule of zero<br> | Rule of zero<br> |