chsvlib
chsv helper source code

◆ AutoResource() [4/28]

AutoResource ( closer_lref  refCloser)

Constructs an AutoResource object from the specified lvalue reference to a closer object, with the value-initialized default handle and the default checker object.

Parameters
refCloseris an lvalue reference to a closer object to be used for closing handles owned and managed by the created instance of the AutoResource.
Remarks
The created object is empty (owns nothing), with value-initialized stored handle and checker. The default handle is not to be closed.
The only handles closed are the ones which are allowed to be closed by the checker.