Auto Close


All I/O objects, except classes in the UNIX System V IPC section of Platform<ToolKit> for UNIX, automatically close their descriptors when they are destroyed. This behavior is convenient in most cases, especially if you only use an I/O object in a certain scope.

If you want to prevent automatic closing of an I/O object, disable this behavior by executing auto_close( false ) before the object goes out-of-scope. This disabling of auto close is useful when you create an I/O object on an existing descriptor owned by another object or scope.


Copyright©1994-2026 Recursion Software LLC
All Rights Reserved - For use by licensed users only.