Definition
An instance L of the parameterized data type slist<E> is a sequence of items (slist_item). Each item in L contains an element of data type E, called the element type of L. The number of items in L is called the length of L. If L has length zero it is called the empty list. In the sequel < x > is used to denote a list item containing the element x and L[i] is used to denote the contents of list item i in L.
#include < LEDA/slist.h >
Types
| slist<E>::value_type | the value type. |
Creation
| slist<E> | L | creates an instance L of type slist<E> and initializes it to the empty list. |
| slist<E> | L(E x) | creates an instance L of type slist<E> and initializes it to the one-element list < x >. |
Operations
© Copyright 1995-2002, Algorithmic Solutions Software GmbH. All rights reserved.
2002-10-16