Generic Mergesort

A few month ago I wrote several basic sort algorithm for educational purposes as generic as possible in C++. Here I want to present an Generic Mergesort:  

Continue reading

Heap- and StackArray

I present my implementation of an HeapArray and StackArray. Similar to the implementation of my ArrayView which justs open a window into sequence here a generic implementation of an actual sequence. I have to admit both classes(ArrayView and Stack/HeapArray) look very similar but they are supposed do to a very similar job, so i think…

Continue reading

ArrayView

I present my implementation of an “ArrayView”. I am totally aware the standard nowadays provides such facilities, but for the purpose of learning generic template coding (or is template meta programming anyway) I tried to implement my very own version. My aim was to avoid any runtime operation as far…

Continue reading

Virtual Machine

I want present to you my little Virtual Machine. It nothing really sophisticated. It is an stack only virtual machine with the exception for some ‘global’ variables which i would count as registers but besides that all calculation done by my VM is done on stack. What i planning now…

Continue reading