std::copy_if
templateCopy certain elements of rangeOutputIterator copy_if (InputIterator first, InputIterator last, OutputIterator result, UnaryPredicate pred);
Copies the elements in the range [first,last) for which pred returns true to the range beginning at result.
将符合要求的元素(对元素调用pred返回true的元素)复制到目标数组中。
The behavior of this function template is equivalent to:
|
|
? |