
17 Dec
2024
17 Dec
'24
3:21 p.m.
On 12/17/24 17:08, Vinnie Falco via Boost wrote:
On Mon, Dec 16, 2024 at 10:46 PM Ivan Matek
wrote: On Mon, Dec 16, 2024 at 6:24 PM Vinnie Falco
wrote: Can this be implemented as a free function over the public API of unordered containers? In other words, this signature:
Yes, but it is not like Barry or other people https://www.youtube.com/watch?feature=shared&t=150&v=kye4aD-KvTU wanting member functions do not know this.
It seems there are two choices here:
1. Add a member function to uncountably many existing and future unordered containers by adding a member function
2. Write a single, separate free function template which works for all existing and future unordered containers
I don't see why it should be limited to unordered containers.