title: c++ maximum std::string length is dictated by stack size or heap size?
body: <p>as asked in the question.<br>
  std::string myVar; the maximum character it can hold is dictated by stack or heap?  </p>
  
  <p>Thank you</p>