chsvlib
chsv helper source code

◆ operator()()

bool operator() ( const HANDLE_TYPE &  h) const

The default check function.

Parameters
his a handle to be checked. If it is created using the default constructor, HANDLE_TYPE(), the check fails and the handle would not be closed by the instance of the AutoResource holding ownership of the handle.
Returns
The function returns true if the check succeeds and the handle is allowed to be closed or false otherwise.