chsvlib
chsv helper source code
DefaultResourceHandleChecker< HANDLE_TYPE > Struct Template Reference

The default functor for checking if a handle to a resource should be closed by an instance of the AutoResource owning the handle. More...

#include <chsvmem.h>

Public Member Functions

bool operator() (const HANDLE_TYPE &h) const
 The default check function. More...
 

Detailed Description

template<class HANDLE_TYPE>
struct Chusov::Memory::DefaultResourceHandleChecker< HANDLE_TYPE >

The default functor for checking if a handle to a resource should be closed by an instance of the AutoResource owning the handle.

Template Parameters
HANDLE_TYPEis a type of the handle to be checked.
Remarks
The class provides the default required check. I.e. the handle instance of the HANDLE_TYPE type created via the default constructor is considered as the one which cannot be closed.

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