AutoResource | ( | handle_lref | refHandle, |
closer_lref | refCloser | ||
) |
Constructs an AutoResource object from an lvalue handle and an lvalue closer object, with the default checker object.
refHandle | is an lvalue reference to a resource handle which is to be owned and managed by the created object. |
refCloser | is an lvalue reference to a closer object to be used for closing handles owned and managed by the created instance of the AutoResource. |