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

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since 0d10090 was d919f47, checked in by Aaron Moss <a3moss@…>, 7 years ago

Update generics paper benchmarks

  • Property mode set to 100644
File size: 473 bytes
Line 
1#pragma once
2
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
11forall(otype T) void ?{}(stack(T)* s, stack(T) t);
12
13forall(otype T) stack(T) ?=?(stack(T)* s, stack(T) t);
14
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);
22
23forall(otype T) void clear(stack(T)* s);
Note: See TracBrowser for help on using the repository browser.