Changes in src/Common/utility.h [54c9000:2e30d47]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/utility.h
r54c9000 r2e30d47 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 } // while108 }109 110 100 template< typename Container > 111 101 void assertAll( const Container &container ) {
Note:
See TracChangeset
for help on using the changeset viewer.