title: does Qt implement _countof or equivalent?
body: <p>I really like using the _countof() macro in VS and I'm wondering if there is an OS-generic implementation of this in Qt.</p>
  
  <p>For those unaware, _countof() gives you the number of elements in the array. so,</p>
  
  <p>wchar_t buf[256];</p>
  
  <p>_countof(buf) => 256 (characters)
  sizeof(buf) => 512  (bytes)</p>
  
  <p>It's very nice for use with, say, unicode strings, where it gives you character count.</p>
  
  <p>I'm hoping Qt has a generic version.</p>