Re: [Boost-bugs] [Boost C++ Libraries] #11296: Function to update key

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11296: Function to update key
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-12-05 22:57:40


#11296: Function to update key
-----------------------------------------------+-------------------------
  Reporter: Olaf van der Spek <olafvdspek@…> | Owner: danieljames
      Type: Feature Requests | Status: closed
 Milestone: To Be Determined | Component: unordered
   Version: Boost 1.58.0 | Severity: Problem
Resolution: wontfix | Keywords:
-----------------------------------------------+-------------------------
Changes (by danieljames):

 * status: new => closed
 * resolution: => wontfix

Comment:

 The C++17 way to do this is to extract the node, change the key, and
 insert it. I'll be implementing that in a future version. Something like:

 {{{
 auto n = x.extract(it);
 n.key() = 100;
 x.insert(n);
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11296#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC