ADT
        arm-eh
        ast-experimental
        enum
        forall-pointer-decay
        jacob/cs343-translation
        new-ast-unique-expr
        pthread-emulation
        qualifiedEnum
      
      
        
          | Last change
 on this file since 6a45bd78 was             f4e3419d, checked in by Peter A. Buhr <pabuhr@…>, 8 years ago | 
        
          | 
restructure paper documents
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            466 bytes | 
      
      
| Rev | Line |  | 
|---|
| [d919f47] | 1 | #pragma once | 
|---|
|  | 2 |  | 
|---|
| [309be81] | 3 | forall(otype T) struct stack_node; | 
|---|
|  | 4 | forall(otype T) struct stack { | 
|---|
|  | 5 | stack_node(T)* head; | 
|---|
|  | 6 | }; | 
|---|
|  | 7 |  | 
|---|
|  | 8 | forall(otype T) void ?{}(stack(T)* s); | 
|---|
| [122aecd] | 9 | forall(otype T) void ?{}(stack(T)* s, stack(T) t); | 
|---|
|  | 10 | forall(otype T) stack(T) ?=?(stack(T)* s, stack(T) t); | 
|---|
| [309be81] | 11 | forall(otype T) void ^?{}(stack(T)* s); | 
|---|
|  | 12 |  | 
|---|
|  | 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); | 
|---|
| [122aecd] | 16 | forall(otype T) void clear(stack(T)* s); | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.