Changes in src/Common/utility.h [2e30d47:54c9000]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/utility.h
r2e30d47 r54c9000 98 98 } 99 99 100 template< typename SrcContainer, typename DestContainer, typename Predicate > 101 void cloneAll_if( const SrcContainer &src, DestContainer &dest, Predicate pred ) { 102 std::back_insert_iterator< DestContainer > out( dest ); 103 for ( auto x : src ) { 104 if ( pred(x) ) { 105 *out++ = x->clone(); 106 } 107 } // while 108 } 109 100 110 template< typename Container > 101 111 void assertAll( const Container &container ) {
Note:
See TracChangeset
for help on using the changeset viewer.