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

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 with_gc
Last change on this file since a9b1b0c was 860f19f, checked in by Aaron Moss <a3moss@…>, 8 years ago

Clean up code edits

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