You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- template<class T>
- class Stack : private DLList<T> {
- public :
- // Default-Konstruktoren + Zuweisung OK
-
- bool empty () {return DLList<T>::empty();}
- void push (T t) {
- this->insert(DLList<T>::begin(),t);
- }
- T top () {return *DLList<T>::begin();}
- void pop () {this->erase(DLList<T>::begin());}
- } ;
|