copy_if
This is an old revision of the document!
copy_if
template<Class InputIterator, class OutputIterator, class Predicate> OutputIterator copyt_if(InputIterator first, InputIterator last, OutputIterator result, Predicate pred) { for( ; first != last; first++) { if(pred(*first)) *result++ = *first; } return result; }
copy_if.1349038940.txt.gz · Last modified: 2023/08/18 18:15 (external edit)