I continued the work on the Skiplist. I tryedtried to incorporate the improvements suggested. I still don't feel ready to add more stuff ( Iterator class, Template Skipnode). I think isit's better to first present the progress so far:.
A short summary of what has changed:
I added alot more comments and tryedtried to make the code in general more readable in general. I hope the code is now easier to follow. I think one of the reasons not many people commented the last time, was the missing explanations in the code.
The random generator was reworked like suggested.
I implemented the missing functions Copy Constructor, Move Constructor, Copy Assignment and Move assignment.
Head now doesn't hold key and value anymore, it only contains pointers.
I added Unit Tests in seperate cpp / h files to test the vector more systematically.
Random Generator
Last timee it was suggestetd
Last time someone suggested to move Random Generator completlycompletely out of the class, and to put it in a seperateseparate class. I didnt understandedidn't understand how. Is the currentlycurrent implementation inside the class ok?