aaronthesisarmehcleanupdtorsdeferred_resndemanglerenumforallpointerdecayjacob/cs343translationjenkinssandboxnewastnewastuniqueexprnewenvno_listpersistentindexerresolvnewwith_gc
Last change
on this file since d919f47 was
d919f47,
checked in by Aaron Moss <a3moss@…>, 5 years ago

Update generics paper benchmarks


Property mode set to
100644

File size:
473 bytes

Rev  Line  

[d919f47]  1  #pragma once 

 2  

[309be81]  3  forall(otype T) struct stack_node; 

 4  

 5  forall(otype T) struct stack { 

 6  stack_node(T)* head; 

 7  }; 

 8  

 9  forall(otype T) void ?{}(stack(T)* s); 

 10  

[122aecd]  11  forall(otype T) void ?{}(stack(T)* s, stack(T) t); 

 12  

 13  forall(otype T) stack(T) ?=?(stack(T)* s, stack(T) t); 

 14  

[309be81]  15  forall(otype T) void ^?{}(stack(T)* s); 

 16  

 17  forall(otype T) _Bool empty(const stack(T)* s); 

 18  

 19  forall(otype T) void push(stack(T)* s, T value); 

 20  

 21  forall(otype T) T pop(stack(T)* s); 

[122aecd]  22  

 23  forall(otype T) void clear(stack(T)* s); 

Note: See
TracBrowser
for help on using the repository browser.