ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
deferred_resn
demangler
enum
forall-pointer-decay
jacob/cs343-translation
jenkins-sandbox
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
with_gc
Last change
on this file since 32cab5b was 29db723, checked in by Peter A. Buhr <pabuhr@…>, 8 years ago |
additional changes
|
-
Property mode
set to
100644
|
File size:
510 bytes
|
Rev | Line | |
---|
[604e76d] | 1 | #pragma once
|
---|
| 2 |
|
---|
[29db723] | 3 | forall( otype T ) struct stack_node;
|
---|
| 4 | forall( otype T ) struct stack {
|
---|
[c9b3a41] | 5 | stack_node(T) * head;
|
---|
[604e76d] | 6 | };
|
---|
| 7 |
|
---|
[29db723] | 8 | forall( otype T ) void ?{}( stack(T) & s );
|
---|
| 9 | forall( otype T ) void ?{}( stack(T) & s, stack(T) t );
|
---|
| 10 | forall( otype T ) stack(T) ?=?( stack(T) & s, stack(T) t );
|
---|
| 11 | forall( otype T ) void ^?{}( stack(T) & s);
|
---|
[604e76d] | 12 |
|
---|
[29db723] | 13 | forall( otype T ) _Bool empty( const stack(T) & s );
|
---|
| 14 | forall( otype T ) void push( stack(T) & s, T value );
|
---|
| 15 | forall( otype T ) T pop( stack(T) & s );
|
---|
| 16 | forall( otype T ) void clear( stack(T) & s );
|
---|
Note:
See
TracBrowser
for help on using the repository browser.