Changeset f86c8e5 for doc/papers/general/evaluation/cpp-stack.hpp
- 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-stack.hpp
r12bbb367 rf86c8e5 31 31 stack() : head(nullptr) {} 32 32 stack(const stack<T>& o) { copy(o); } 33 stack(stack<T>&& o) : head(o.head) { o.head = nullptr; }34 33 ~stack() { clear(); } 35 34 … … 38 37 clear(); 39 38 copy(o); 40 return *this;41 }42 43 stack& operator= (stack<T>&& o) {44 if ( this == &o ) return *this;45 head = o.head;46 o.head = nullptr;47 39 return *this; 48 40 }
Note: See TracChangeset
for help on using the changeset viewer.