C++23: std:out_ptr and std:inout_ptr
I&#x27;m not sure how these are supposed to be helpful. You often won&#x27;t know if a C API has deleted a pointer until you actually examine its return value. So instead of<p><pre><code>  if (foo(p.release()) == 0) { ... }
</code></pre>
you generally need to do<p><pre><code>  if (foo(p.get()) == 0) { p.release(); ... }
</code></pre>
Instead of reducing bugs, these might be introducing new footguns.