title: C++ fixed length string class?
body: <p>Is there anything like this in Standard C++ / <a href="http://en.wikipedia.org/wiki/Standard_Template_Library" rel="noreferrer">STL</a>?  Ideally it should be constructed like</p>
  
  <pre><code>fstring s = fstring(10);
  </code></pre>
  
  <p>I need to sometimes construct or have a string of fixed size. Sometimes to be able to read / write only that many characters into a stream.</p>
  
  <p><em>Edit:</em></p>
  
  <p>Note that the size is only known at runtime, and is different from one to the other.  But all of the <code>fstring</code>s should know how to work together and have all the fancy <code>string</code> behavior.</p>