Main Page Modules Class Hierarchy Data Structures File List Data Fields Globals Related Pages

# oscl_mem_auto_ptr.h File Reference

This file defines the oscl_mem_auto_ptr template class. This class is used to avoid any potential memory leaks that may arise while returning from methods in case of error. More...

`#include "osclconfig_memory.h"`
`#include "osclconfig_compiler_warnings.h"`
`#include "oscl_mem.h"`

Go to the source code of this file.

## Data Structures
class | OSCLMemAutoPtr
| The oscl_auto_ptr class is a template class that defines a pointer like object intended to be assigned an address obtanined (directly or or indirectly) by new. When the oscl_auto_ptr expires, its destructor uses delete to free the memory. More...
## Defines
#define | OSCL_DISABLE_WARNING_TRUNCATE_DEBUG_MESSAGE
#define | OSCL_DISABLE_WARNING_RETURN_TYPE_NOT_UDT

## Detailed Description

This file defines the oscl_mem_auto_ptr template class. This class is used to avoid any potential memory leaks that may arise while returning from methods in case of error.

## Define Documentation

#define OSCL_DISABLE_WARNING_TRUNCATE_DEBUG_MESSAGE