diff options
Diffstat (limited to 'lib/SList.cc')
-rw-r--r-- | lib/SList.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/SList.cc b/lib/SList.cc new file mode 100644 index 0000000..fef50e9 --- /dev/null +++ b/lib/SList.cc @@ -0,0 +1,11 @@ +#include <stdio.h> +#include "SList.h" + +Cell SList::Insert(Key_t IKey, Datas_t const &IDatas) +{ + CList *I = this, *x; + + for (x = Right; (x) && (x->Key <= IKey); x = x->Right) + I = x; + return (new CList(I, IDatas, IKey)); +} |