Boost logo

Boost :

Subject: Re: [boost] Advanced find() for associative containers
From: Bjorn Reese (breese_at_[hidden])
Date: 2017-03-18 13:05:07


On 03/16/2017 06:18 PM, Boris Rasin via Boost wrote:

> 2. Where exactly should it fit in the boost?

The most appropriate place would be Boost.Algorithm, so that is
Marshall's domain.

> Public interface consists of a single free function template:
>
> template <typename C>
> auto find(C& c, const typename C::key_type& key);

Your find() function deviates on several accounts from std::find()
so it should probably be renamed, e.g. to find_key.

Can you elaborate on why you have a specialization that uses
lower_bound()?

What is the minimal C++ version required? Looks like C++14 from
the auto return type.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk