| 191 | |
| 192 | template <typename UnaryPredicate> |
| 193 | auto filter(UnaryPredicate p) const |
| 194 | -> cmRange<RangeIterators::FilterIterator<Iter, UnaryPredicate>> |
| 195 | { |
| 196 | using It = RangeIterators::FilterIterator<Iter, UnaryPredicate>; |
| 197 | return { It(this->Begin, this->End, p), It(this->End, this->End, p) }; |
| 198 | } |
| 199 | |
| 200 | template <typename UnaryFunction> |
| 201 | auto transform(UnaryFunction f) const |
no outgoing calls