|
Boost : |
From: Vinnie Falco (vinnie.falco_at_[hidden])
Date: 2024-12-16 17:24:28
On Mon, Dec 16, 2024 at 2:36â¯AM Ivan Matek via Boost <boost_at_[hidden]>
wrote:
> I presume somebody thought of this before but for some reason it never
> happened, but just in case it was never discussed I wonder if people here
> believe adding an nicer version of find(with different name obviously) to
> associative containers in boost would be beneficial?
>
Can this be implemented as a free function over the public API of unordered
containers? In other words, this signature:
template< typename UnorderedMap, typename Key >
auto try_find( UnorderedMap&& u, Key const& k );
Thanks
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk