title: My class has a toString() method, how do I use this for hashing in std::unordered_set?
body: <p><code>MyClass</code> defines <code>operator==</code> and has a non-trivial internal state, but it does provide a <code>wstring toString()</code> method, which returns a serialized version of that state. So I thought it would be easy just to use <code>toString()</code> with <code>hash&lt;wstring&gt;</code> on <code>std::unordered_set</code>.</p>
  
  <p>But is it possible to do this in a nice neat way without defining extraneous functor classes? I'm only just getting to grips with C++11 after moving to VS2013 and I thought this was one of the big steps forward, being able to define such things as lambdas?</p>
  
  <p>Thanks for any suggestions how best to do this.</p>