chsvlib
chsv helper source code

◆ AutoResource() [2/28]

AutoResource ( handle_lref  refHandle)

Constructs an AutoResource object from an lvalue handle with the default closer and checker.

Parameters
refHandleis an lvalue reference to a resource handle which is to be owned and managed by the created object.
Remarks
The object takes ownership of the handle, initializing its stored handle and value-initializing its stored closer and checker.
The only handles closed are the ones which are allowed to be closed by the checker.