GDAL

- Main Page
- Related Pages
- Classes
- Files
- Download
- Issue Tracker

- Class List
- Class Hierarchy
- Class Members

CPLAutoClose< _Ty, _Dx > Class Template Reference

The class use the destructor to automatically close the resource. More...

`#include <cpl_auto_close.h>`

## Detailed Description

### template<typename _Ty, typename _Dx>
class CPLAutoClose< _Ty, _Dx >

The class use the destructor to automatically close the resource.

Example: GDALDatasetH hDset = GDALOpen(path,GA_ReadOnly); CPLAutoClose<GDALDatasetH,void(*)(void*)> autoclosehDset(hDset,GDALClose); Or: GDALDatasetH hDset = GDALOpen(path,GA_ReadOnly); CPL_AUTO_CLOSE_WARP(hDset,GDALClose);

The documentation for this class was generated from the following file:

- cpl_auto_close.h

Generated for GDAL by 1.8.8.