chsvlib
chsv helper source code

◆ reset() [1/2]

void reset ( handle_lref  rHandle)

Closes the resource currently managed by the AutoResource (if any) and takes ownership of rHandle.

Parameters
rHandleis an lvalue reference to a handle of the resource whose ownership is taken over by the object. Generally, this handle should not be already managed by any other managing mechanism (i.e., this value should not come from calling member get on a managed resources).
Remarks
To release the ownership of the managed resource without closing it, use member function release instead.