Table of contents Introduction 1. Basic Dispose pattern in C++/CLI 1.1. Defining a destructor and finalizer 1.2. Using stack semantics 2. Managed templates 2.1. Smart pointers 2.2. Usage example 2.3. More complex options for finalization …
Continue readingAuthor: Dmitry Ponomarev
Copy semantics and resource management in C++
Table of contents Introduction 1. Basic copy-ownership policies 1.1. No copying policy 1.2. Exclusive ownership policy 1.3. Deep copying policy 1.4. Shared ownership policy 2. Deep copying policy – problems and solutions 2.1. Copy-on-write 2.2. …
Continue reading