Changeset a381b46 for doc/generic_types/evaluation/cpp-vstack.hpp
- Timestamp:
- Apr 15, 2017, 7:09:59 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, resolv-new, with_gc
- Children:
- c57d1935
- Parents:
- 308880c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/generic_types/evaluation/cpp-vstack.hpp
r308880c ra381b46 1 1 #pragma once 2 3 2 #include "object.hpp" 4 3 … … 9 8 10 9 node( const object& v ); 11 12 10 node( ptr<object>&& v, node* n ); 13 11 }; 14 15 12 node* head; 16 13 17 14 void copy(const stack& o); 18 19 15 public: 20 void clear();21 22 16 stack(); 23 24 17 stack(const stack& o); 25 26 18 stack(stack&& o); 27 28 19 ~stack(); 29 30 20 stack& operator= (const stack& o); 31 32 21 stack& operator= (stack&& o); 33 22 23 void clear(); 34 24 bool empty() const; 35 36 25 void push(ptr<object>&& value); 37 38 26 ptr<object> pop(); 39 27 };
Note: See TracChangeset
for help on using the changeset viewer.