source: doc/generic_types/evaluation/cfa-stack.h @ d919f47

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerresolv-newwith_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
RevLine 
[d919f47]1#pragma once
2
[309be81]3forall(otype T) struct stack_node;
4
5forall(otype T) struct stack {
6        stack_node(T)* head;
7};
8
9forall(otype T) void ?{}(stack(T)* s);
10
[122aecd]11forall(otype T) void ?{}(stack(T)* s, stack(T) t);
12
13forall(otype T) stack(T) ?=?(stack(T)* s, stack(T) t);
14
[309be81]15forall(otype T) void ^?{}(stack(T)* s);
16
17forall(otype T) _Bool empty(const stack(T)* s);
18
19forall(otype T) void push(stack(T)* s, T value);
20
21forall(otype T) T pop(stack(T)* s);
[122aecd]22
23forall(otype T) void clear(stack(T)* s);
Note: See TracBrowser for help on using the repository browser.