
16 Dec
2024
16 Dec
'24
5:24 p.m.
On Mon, Dec 16, 2024 at 2:36 AM Ivan Matek via Boost
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