Changeset 3d8f2f8 for doc/papers/general/evaluation/cpp-stack.hpp
- Timestamp:
- Mar 9, 2018, 1:28:54 PM (4 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, resolv-new, with_gc
- Children:
- e84382b
- Parents:
- 8b001bd (diff), f86c8e5 (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
r8b001bd r3d8f2f8 11 11 12 12 stack() : head( nullptr ) {} 13 stack( const stack<T> & o ) { copy( o ); }13 stack( const stack<T> & o ) { copy( o ); } 14 14 stack( stack<T> && o ) : head( o.head ) { o.head = nullptr; } 15 15 … … 41 41 } 42 42 43 stack & operator= ( stack<T> && o ) {44 if ( this == &o ) return *this;45 head = o.head;46 o.head = nullptr;47 return *this;48 }49 50 43 bool empty() const { return head == nullptr; } 51 44
Note: See TracChangeset
for help on using the changeset viewer.