ItalaApi
1.3.3
|
Go to the source code of this file.
The following functions provide a convenient way for managing IDisposable instances lifecycle via the smart pointers of the C++ standard library. These functions should be called immediately after creating the instance to avoid both raw and smart pointers around at the same time. When the smart pointer is destroyed, the IDisposable::Dispose method of the IDisposable interface is automatically called.
Note that this header is just a quick helper completely editable by the user. Feel free to introduce improvements or entirely swap the smart pointer implementation with a different one (e.g. Boost).