template struct P1::CameraSdkC::ScopedCleanup

Automatically calls Delete() on the the templated object, when it goes out-of-scope.

#include <C_P1CameraTypes.h>

template <typename T>
struct ScopedCleanup
{
    // fields

    T mObject;

    // methods

    T& PassOwnerShip();
    const T* operator -> () const;
};