chsvlib
chsv helper source code

◆ AutoResource() [3/28]

AutoResource ( handle_rref  rrefHandle)

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

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