Boost logo

Boost :

From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2024-12-17 15:21:33


On 12/17/24 17:08, Vinnie Falco via Boost wrote:
> On Mon, Dec 16, 2024 at 10:46 PM Ivan Matek <libbooze_at_[hidden]> wrote:
>
>> On Mon, Dec 16, 2024 at 6:24 PM Vinnie Falco <vinnie.falco_at_[hidden]>
>> 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.


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