chsvlib
chsv helper source code

◆ AutoResource() [7/28]

AutoResource ( closer_rref  rrefCloser)

Constructs an AutoResource object from an rvalue reference to a closer object using move semantics, with the value-initialized default handle and the default checker object.

Parameters
rrefCloseris an rvalue 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.