Deleting nullptr - performance overhead?
<p>Operator delete checks itself if the pointer is nullptr. Is there any performance overhead when calling delete on a nullptr without checking it yourself?</p>

<pre><code>delete ptr;
</code></pre>

<p>or</p>

<pre><code>if (ptr != nullptr) delete ptr; 
</code></pre>

<p>Which of the above executes faster if ptr is nullptr?</p>
