Boost C++ Libraries: Ticket #6336: return type of flat_map::emplace is not match to documents https://svn.boost.org/trac10/ticket/6336 <p> The document says, return type of flat_map.emplace is pair that contains iterator and bool. However actual type is iterator. </p> <p> e.g. Boost.Unordered and standard library of emplace return pair. container::map::emplace returns iterator (map's doc is match to impl). </p> <p> Which is correct? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6336 Trac 1.4.3 Ion Gaztañaga Fri, 30 Dec 2011 23:41:29 GMT <link>https://svn.boost.org/trac10/ticket/6336#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6336#comment:1</guid> <description> <p> This is a bug, the standard library is correct. Fixed in trunk. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Wed, 18 Jan 2012 20:53:57 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6336#comment:2 https://svn.boost.org/trac10/ticket/6336#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Merged to release branch </p> Ticket achidlow@… Wed, 22 Feb 2012 06:48:46 GMT <link>https://svn.boost.org/trac10/ticket/6336#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6336#comment:3</guid> <description> <p> Shouldn't emplace_hint also return std::pair&lt;iterator, bool&gt; ? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Sat, 24 Mar 2012 15:45:33 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6336#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6336#comment:4</guid> <description> <p> No, the standard interface for std::map/set::emplace_hint does not have it, just like insert with hint returns iterator. </p> </description> <category>Ticket</category> </item> </channel> </rss>