Create a guard object that will manage the specified descriptor, closing it upon destruction (unless either realease or closeAndRelease has been called). It is permissible for descriptor to be FilesystemUtil::k_INVALID_FD, in which case the guard created will not manage anything.

Synopsis

Declared in <bdls_filedescriptorguard.h>

explicit
FileDescriptorGuard(FilesystemUtil::FileDescriptor descriptor);

Created with MrDocs