title: Simplest concurrent C++11 string keyed map
body: <p>Like many C++ devs at some point, I needed a <strong>simple concurrent string-keyed table</strong>, and I wanted it based just on C++11 standard library.</p>
  
  <p>By "concurrent" I mean that multiple threads can work on it without locking each other out (most of the time).</p>
  
  <p><em>Update: there are two popular solutions available. Not exactly "simple" but feature rich and performant:</em></p>
  
  <ul>
  <li><a href="https://github.com/preshing/junction" rel="nofollow noreferrer">junction</a> (BSD license)</li>
  <li><a href="https://software.intel.com/en-us/node/506171" rel="nofollow noreferrer">Intel's TBB</a> (Apache license)</li>
  </ul>
  
  <p>Besides, and hoping to save some time to the next working guy/gal around, I am sharing the <strong>simplest</strong> C++11 solution (~40 LOC) I have been able to put together.</p>
  
  <p>The feedback so far has been great in that it helped me finding existing options and improving my simple answer. It would be nice to see other simple answers coming along.</p>