Boost logo

Boost :

Subject: Re: [boost] Advanced find() for associative containers
From: Boris Rasin (boris_at_[hidden])
Date: 2017-03-19 11:35:33


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

This provides hint for insert/emplace in case element is not found. In
fact this is the default implementation, and the find() member is only
used for associative containers without lower_bound().

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

Yes, right now C++14 is required. It is probably possible to back port
this code to C++11 and maybe even C++98.


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