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

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 resolv-new stuck-waitfor-destruct with_gc
Last change on this file since d919f47 was d919f47, checked in by Aaron Moss <a3moss@…>, 9 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.