Copy elements of Range for which P is true into Out.
Declared in <llvm/ADT/STLExtras.h>
template<
typename R,
typename OutputIt,
typename UnaryPredicate>
OutputIt
copy_if(
R&& Range,
OutputIt Out,
UnaryPredicate P);
Output iterator past the last written element.
| Name | Description |
|---|---|
| Range | Range to copy from. |
| Out | Output iterator receiving matching elements. |
| P | Unary predicate selecting elements to copy. |