Changes in src/Common/utility.h [298fe57:f8143a6]
- File:
-
- 1 edited
-
src/Common/utility.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Common/utility.h
r298fe57 rf8143a6 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Andrew Beach12 // Last Modified On : Mon Apr 25 14:26:00 202213 // Update Count : 5 111 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Feb 11 13:00:36 2020 13 // Update Count : 50 14 14 // 15 15 … … 230 230 } 231 231 232 template<typename Container, typename Pred>233 void erase_if( Container & cont, Pred && pred ) {234 auto keep_end = std::remove_if( cont.begin(), cont.end(), pred );235 cont.erase( keep_end, cont.end() );236 }237 238 232 template< typename... Args > 239 233 auto zip(Args&&... args) -> decltype(zipWith(std::forward<Args>(args)..., std::make_pair)) {
Note:
See TracChangeset
for help on using the changeset viewer.