Changes in src/Common/utility.h [a7741435:2298f728]
- File:
-
- 1 edited
-
src/Common/utility.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Common/utility.h
ra7741435 r2298f728 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Dec 14 21:25:25201613 // Update Count : 3112 // Last Modified On : Fri Sep 23 11:46:47 2016 13 // Update Count : 28 14 14 // 15 15 … … 36 36 } 37 37 38 template< typename T, typename U>38 template<typename T, typename U> 39 39 struct maybeBuild_t { 40 40 static T * doit( const U *orig ) { … … 148 148 } 149 149 150 // replace element of list with all elements of another list151 150 template< typename T > 152 151 void replace( std::list< T > &org, typename std::list< T >::iterator pos, std::list< T > &with ) { … … 159 158 160 159 return; 161 }162 163 // replace range of a list with a single element164 template< typename T >165 void replace( std::list< T > &org, typename std::list< T >::iterator begin, typename std::list< T >::iterator end, const T & with ) {166 org.insert( begin, with );167 org.erase( begin, end );168 160 } 169 161
Note:
See TracChangeset
for help on using the changeset viewer.