AutoResource | ( | handle_rref | rrefHandle, |
closer_lref | refCloser | ||
) |
Constructs an AutoResource object from an rvalue reference to a handle, using move semantics, and from an lvalue closer, with the default checker.
rrefHandle | is an rvalue 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. |