source: doc/papers/general/evaluation/cpp-vstack.hpp@ 81e8ab0

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 81e8ab0 was 81e8ab0, checked in by Peter A. Buhr <pabuhr@…>, 8 years ago

more updates

  • Property mode set to 100644
File size: 437 bytes
Line 
1#pragma once
2#include "object.hpp"
3
4struct stack {
5 struct node {
6 ptr<object> value;
7 node * next;
8 node( const object & v, node * n = nullptr );
9 };
10 node * head;
11
12 void copy( const stack & o );
13
14 stack();
15 stack( const stack & o );
16 stack( stack && o );
17 ~stack();
18 stack& operator=( const stack& o );
19 stack& operator=( stack && o );
20
21 void clear();
22 bool empty() const;
23 void push( const object & value );
24 ptr<object> pop();
25};
Note: See TracBrowser for help on using the repository browser.