Changeset f86c8e5 for doc/papers/general/evaluation/cpp-vstack.cpp
- Timestamp:
- Mar 9, 2018, 12:11:23 PM (5 years ago)
- Branches:
- aaron-thesis, arm-eh, 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, b51e5fdb
- Parents:
- 12bbb367
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/papers/general/evaluation/cpp-vstack.cpp
r12bbb367 rf86c8e5 15 15 stack::stack() : head(nullptr) {} 16 16 stack::stack(const stack& o) { copy(o); } 17 stack::stack(stack&& o) : head(o.head) { o.head = nullptr; }18 17 stack::~stack() { clear(); } 19 18 … … 22 21 clear(); 23 22 copy(o); 24 return *this;25 }26 27 stack& stack::operator= (stack&& o) {28 if ( this == &o ) return *this;29 head = o.head;30 o.head = nullptr;31 23 return *this; 32 24 }
Note: See TracChangeset
for help on using the changeset viewer.