Type sequence concatenation / associative array implementation
    user1234 
    user1234 at 12.de
       
    Wed Feb 12 21:05:22 UTC 2020
    
    
  
On Wednesday, 12 February 2020 at 20:58:49 UTC, Marcel wrote:
> Hello!
> I have two questions:
>
> 1- How can I concatenate two type sequences?
alias Concatenated = AliasSeq!(TList1, TList2);
or maybe
alias Concatenated = AliasSeq!(TList1[0..$], TList2[0..$]);
since I don't remember if they nest or not.
> 2- How is the builtin associative array implemented? I think I 
> read somewhere it's implemented like C++'s std::unordered_map 
> but with BSTs instead of DLists for handling collisions: is 
> this correct?
see druntime source.
    
    
More information about the Digitalmars-d-learn
mailing list