Sha256: 23a4f3a79c6cd1faa0ca0c3f23d43cee13db3edfc7b196f0612bd0a92e7aa998
Contents?: true
Size: 623 Bytes
Versions: 6
Compression:
Stored size: 623 Bytes
Contents
#ifndef _IV_ALGORITHM_H #define _IV_ALGORITHM_H_ namespace iv { namespace algorithm { template<class InputIterator, class OutputIterator, class UnaryFunction, class Predicate> OutputIterator transform_if(InputIterator first, InputIterator last, OutputIterator result, UnaryFunction f, Predicate pred) { while (first != last) { if (pred(*first)) { *result++ = f(*first); } ++first; } return result; } } } // namespace iv::algorithm #endif // _IV_ALGORITHM_H_
Version data entries
6 entries across 6 versions & 1 rubygems