2 ms·
It's also similar to C#'s "using ...;" without a block. Syntax sugar there rather than RAII, but looks the same.
by viraptor 2y ago
It's also similar to C#'s "using ...;" without a block. Syntax sugar there rather than RAII, but looks the same.
- zigzag312 2y agoC#'s using can be used without a block. It disposes the resource at the end of a current scope.