title: Double-checked locking and the Singleton pattern
body: <p>Does the Visual Studio 2015 compiler insert double-checked locking?</p>
  
  <p>I would like do make my Singleton (GOF) pattern thread safe (lock-free).</p>
  
  <pre><code>Singleton&amp; Singleton::getInstance() {
      static Singleton instance;
      return instance;
  }
  </code></pre>
  
  <p>Is it possible to produce the assembler code and check?</p>