ollapse" id="comment-func-removeall-keepcapacity_"><div class="p">
    <p>Remove all elements.</p>

<p>Invalidates all indices with respect to <code>self</code>.</p>

<p><strong><code>keepCapacity</code>:</strong>  If <code>true</code>, is a non-binding request to
   avoid releasing storage, which can be a useful optimization
   when <code>self</code> is going to be grown again.</p>

<p><strong>Complexity:</strong> O(<code>self.count</code>).</p>

    <h4>Declaration</h4>    
    <code class="language-swift