CIgnoreLeaks
Description
This class helps ignore leaks in some block:
#include "DeleakerClientApi.h"
Singleton* _singleton;
void f()
{
// This is a block, allocations of which are not being monitored by Deleaker
// because of DeleakerClientApi::CIgnoreLeaks instance
{
DeleakerClientApi::CIgnoreLeaks IgnoreLeaks;
_singleton = new Singleton(); // I don't want to view this leak in the Deleaker report
}
}