Changeset 893e106 for src/Common/utility.h
- Timestamp:
- May 22, 2019, 5:23:02 PM (4 years ago)
- Branches:
- arm-eh, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 722c4831
- Parents:
- 76ed81f (diff), ef5ef56 (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
-
src/Common/utility.h
r76ed81f r893e106 74 74 75 75 template< typename Container > 76 void deleteAll( Container &container ) {77 for ( typename Container::iterator i = container.begin(); i != container.end(); ++i) {78 delete *i;76 void deleteAll( const Container &container ) { 77 for ( const auto &i : container ) { 78 delete i; 79 79 } // for 80 80 }
Note: See TracChangeset
for help on using the changeset viewer.