title: Secure, password specific std::string that zeroes itself upon de-allocation
body: <p>I found something relevant to the question at [ 1 ] but it is Boost specific due to the age of the post and C++11 having not been matured by that point but otherwise, I'm looking for a secure std::string typedef of the sort below that zeroes itself upon de-allocation.</p>
  
  <p><code>typedef std::basic_string&lt;char, std::char_traits&lt;char&gt;, SecureStr&lt;char&gt;&gt; string;</code></p>
  
  <p>[ 1 ] - <a href="https://stackoverflow.com/questions/5698002/how-does-one-securely-clear-stdstring">how does one securely clear std::string?</a></p>
  
  <p>Would anyone know of good examples? The code must also NOT be optimized away on compilation and as such, compromise the security of the application. I know this can be quite the problem without good use of APIs into the O/S and/or compiler.</p>