- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/papers/general/evaluation/cpp-vstack.hpp
r604e76d 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.