Boost C++ Libraries: Ticket #11992: Add an overload of insert_check taking a key_type https://svn.boost.org/trac10/ticket/11992 <p> The different flavors of intrusive set don't seem to have an <code>insert_check</code> method that takes a <code>key_type</code> directly and uses the container's key comparator and/or hasher. </p> <p> It would be convenient to add this method: </p> <div class="wiki-code"><div class="code"><pre><span class="n">std</span><span class="o">::</span><span class="n">pair</span><span class="o">&lt;</span><span class="n">iterator</span><span class="p">,</span> <span class="kt">bool</span><span class="o">&gt;</span> <span class="n">insert_check</span><span class="p">(</span><span class="k">const</span> <span class="n">key_type</span><span class="o">&amp;</span><span class="p">,</span> <span class="n">insert_commit_data</span><span class="o">&amp;</span><span class="p">);</span> </pre></div></div><p> That would also be consistent with the way the methods <code>find</code>, <code>lower_bound</code>, <code>upper_bound</code>, <code>equal_range</code> and <code>erase</code> work. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11992 Trac 1.4.3 Ion Gaztañaga Tue, 01 Mar 2016 20:26:12 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11992#comment:1 https://svn.boost.org/trac10/ticket/11992#comment:1 <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> Thanks for the report. You are right they were missing. Fixed in: </p> <p> <a class="ext-link" href="https://github.com/boostorg/intrusive/commit/4cf38987a88e1bb1157f1b8957bc0fc167b576e4"><span class="icon">​</span>https://github.com/boostorg/intrusive/commit/4cf38987a88e1bb1157f1b8957bc0fc167b576e4</a> </p> Ticket