Search code examples
c++memory-managementmanaged-c++

Dynamic Memory Allocation in C++


What is the difference between the 'delete' and 'dispose' C++ operators with regards to dynamic memory allocation?


Solution

  • delete will free memory dynamically allocated in unmanaged C++
    Dispose will force custom object implemented maintenance of disposable objects in managed C++/CLI