title: When to use std::size_t?
body: <p>I'm just wondering should I use <code>std::size_t</code> for loops and stuff instead of <code>int</code>?
  For instance:</p>
  
  <pre><code>#include &lt;cstdint>
  
  int main()
  {
      for (std::size_t i = 0; i &lt; 10; ++i) {
          // std::size_t OK here? Or should I use, say, unsigned int instead?
      }
  }</code></pre>
  
  <p>In general, what is the best practice regarding when to use <code>std::size_t</code>?</p>