title: C++ inserting unique_ptr in map
body: <p>I have a C++ object of type <code>ObjectArray</code></p>
  
  <pre><code>typedef map&lt;int64_t, std::unique_ptr&lt;Class1&gt;&gt; ObjectArray;
  </code></pre>
  
  <p>What is the syntax to create a <code>unique_ptr</code> to a new object of type <code>Class1</code> and insert it into an object of type <code>ObjectArray</code>?</p>