|
Boost Users : |
Subject: Re: [Boost-users] [Unordered] [Multi-Index] Set lookup from something else than key_type
From: Daniel James (daniel_james_at_[hidden])
Date: 2009-09-02 08:23:38
2009/9/2 <joaquin_at_[hidden]>:
>
> Yep, I now see your POV and this is admittedly something people can disagree
> on.
> Another possibility is that Boost.Unordered provide
>
> const_iterator find(const key_type& k) const;
>
> template<
> typename CompatibleKey,typename CompatibleHash,typename CompatiblePred
> >
> iterator find(
> const CompatibleKey& k,
> const CompatibleHash& hash,const CompatiblePred& eq)const;
>
> which is a pure extension without backwards compatibility problems. This
> is seemingly what Boost.Intrusive is doing.
Yes, I think I'll add that to the new version which should be released
in 1.41 or 1.42.
Daniel
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