Changeset 3fb7f5e for doc/generic_types/evaluation/cpp-stack.hpp
- Timestamp:
- Apr 14, 2017, 4:51:13 PM (8 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:
- 1504536, e3de500
- Parents:
- 3895b8b5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/generic_types/evaluation/cpp-stack.hpp
r3895b8b5 r3fb7f5e 18 18 node* next = o.head; 19 19 while ( next ) { 20 *crnt = new node{ next->value }; 20 *crnt = new node{ next->value }; /***/ 21 21 crnt = &(*crnt)->next; 22 22 next = next->next; … … 63 63 64 64 void push(T&& value) { 65 head = new node{ std::move(value), head }; 65 head = new node{ std::move(value), head }; /***/ 66 66 } 67 67
Note: See TracChangeset
for help on using the changeset viewer.