From 833d20a69fe17ab846c153e35230c66a41d8fca9 Mon Sep 17 00:00:00 2001 From: Pixel <> Date: Wed, 28 Feb 2001 11:40:25 +0000 Subject: Premier jet --- lib/SList.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/SList.cc (limited to 'lib/SList.cc') 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 +#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)); +} -- cgit v1.2.3