Changeset 32cab5b for doc/papers/general/evaluation/cpp-vstack.hpp
- Timestamp:
- Apr 17, 2018, 12:01:09 PM (7 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, with_gc
- Children:
- 3265399
- Parents:
- b2fe1c9 (diff), 81bb114 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/papers/general/evaluation/cpp-vstack.hpp
rb2fe1c9 r32cab5b 2 2 #include "object.hpp" 3 3 4 classstack {4 struct stack { 5 5 struct node { 6 6 ptr<object> value; 7 node* next; 8 9 node( const object& v, node* n = nullptr ); 7 node * next; 8 node( const object & v, node * n = nullptr ); 10 9 }; 11 node* head; 12 13 void copy(const stack& o); 14 public: 15 stack(); 16 stack(const stack& o); 17 stack(stack&& o); 18 ~stack(); 19 stack& operator= (const stack& o); 20 stack& operator= (stack&& o); 10 node * head; 21 11 22 12 void clear(); 13 void copy( const stack & o ); 14 15 stack(); 16 stack( const stack & o ); 17 ~stack(); 18 stack & operator=( const stack& o ); 23 19 bool empty() const; 24 void push( const object& value);20 void push( const object & value ); 25 21 ptr<object> pop(); 26 22 };
Note:
See TracChangeset
for help on using the changeset viewer.