title: Checking whether a vector is empty
body: <p>Suppose I have a <code>std::vector</code> say <code>Vector</code></p>
  
  <p>Now after performing some operations on the vector(either insertion or deletion) I want to check if the vector is empty and on the basis of that I want to perform some operations.</p>
  
  <p>Which approach is better</p>
  
  <p>Approach 1</p>
  
  <pre><code>if (Vector.size() == 0){ /* operations */ }
  </code></pre>
  
  <p>Approach 2</p>
  
  <pre><code>if (Vector.empty()) { /* operations */ }
  </code></pre>
  
  <p>Which is a better approach, <code>1</code> or <code>2</code>?</p>