Changeset 8b001bd for doc/papers/general/evaluation/cpp-stack.hpp
- Timestamp:
- Mar 9, 2018, 1:08:32 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:
- 3d8f2f8
- Parents:
- 81e8ab0 (diff), e59f0bf (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-stack.hpp
r81e8ab0 r8b001bd 14 14 stack( stack<T> && o ) : head( o.head ) { o.head = nullptr; } 15 15 16 void clear() { 17 for ( node * next = head; next; ) { 18 node * crnt = next; 19 next = crnt->next; 20 delete crnt; 21 } 22 head = nullptr; 23 } 24 16 25 void copy( const stack<T> & o ) { 17 26 node ** crnt = &head; … … 21 30 } 22 31 *crnt = nullptr; 23 }24 25 void clear() {26 for ( node * next = head; next; ) {27 node * crnt = next;28 next = crnt->next;29 delete crnt;30 }31 head = nullptr;32 32 } 33 33
Note: See TracChangeset
for help on using the changeset viewer.