Changeset 81e8ab0 for doc/papers/general/evaluation/cpp-vstack.hpp
- Timestamp:
- Mar 9, 2018, 9:30:47 AM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 8b001bd
- Parents:
- 29db723
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/papers/general/evaluation/cpp-vstack.hpp
r29db723 r81e8ab0 2 2 #include "object.hpp" 3 3 4 classstack {4 struct stack { 5 5 struct node { 6 6 ptr<object> value; 7 node* next; 7 node * next; 8 node( const object & v, node * n = nullptr ); 9 }; 10 node * head; 8 11 9 node( const object& v, node* n = nullptr ); 10 }; 11 node* head; 12 void copy( const stack & o ); 12 13 13 void copy(const stack& o);14 public:15 14 stack(); 16 stack( const stack& o);17 stack( stack&& o);15 stack( const stack & o ); 16 stack( stack && o ); 18 17 ~stack(); 19 stack& operator= (const stack& o);20 stack& operator= (stack&& o);18 stack& operator=( const stack& o ); 19 stack& operator=( stack && o ); 21 20 22 21 void clear(); 23 22 bool empty() const; 24 void push( const object& value);23 void push( const object & value ); 25 24 ptr<object> pop(); 26 25 };
Note: See TracChangeset
for help on using the changeset viewer.