Boost logo

Boost Users :

Subject: Re: [Boost-users] [multi_index] do erase() call key extractors?
From: Nick Stokes (randomaccessiterator_at_[hidden])
Date: 2015-12-25 14:09:37


>
> [..]
> fooIndex.erase(b) involves hashing and equality comparison for Bar*'s,
> which as you correctly point out does not throw. Once the element(s) to
> be erased are identified, no further user-provided function
> (getBarValue or any other) is invoked, and deletion will succeed. Briefly
> put, fooIndex.erase(b) does not ever throw and does not ever call
> getBarValue, if this is what you were after.
>
>
Precisely! Thanks, nick



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net