Need a collection of unique elements (like C++ std::set).

Cooler kulkin at hotbox.ru
Thu Jan 2 02:54:54 PST 2014


On Thursday, 2 January 2014 at 10:21:11 UTC, Andrej Mitrovic 
wrote:
> On 1/1/14, Brad Anderson <eco at gnuk.net> wrote:
>> void[key] is a commonly requested feature but so far no one has
>> implemented it.
>
> You can however use:
>
> void[0][int] hash;
> hash[1] = [];

Interesting... What is a profit of this solution over simple 
bool[int]?


More information about the Digitalmars-d mailing list