summaryrefslogtreecommitdiff
path: root/lib/SList.cc
blob: fef50e9ab0bdd65eb82ca5fe9827918fd39cc6a5 (plain)
1
2
3
4
5
6
7
8
9
10
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));
}