title: C++ : writing to specific index position in std::string
body: <p>Hi I am new to community.</p>
  
  <p>I have a question regarding std::string.
  Is it possible to write into specific index of string keeping rest of string empty ? </p>
  
  <p>e.g. </p>
  
  <pre><code>std::string tempString = ""; 
  tempString -&gt;insert(10, "Some String I want to Insert"); 
  //index position and string to insert
  </code></pre>
  
  <p>and final answer would be tempString = "__________Some String I want to Insert" </p>
  
  <p>where characters 0 through 9 are uninitialized.</p>
  
  <p>this is possible with char * once memory is allocated.
  but is this possible with std::strings ? </p>
  
  <p>Thank you in advance and thank you for having me in this community :) </p>