ΒΆtemplate <typename RangeT, typename PredicateT>
iterator_range<
filter_iterator<detail::IterOfRange<RangeT>,
PredicateT>>
make_filter_range(RangeT&& Range, PredicateT Pred)
template <typename RangeT, typename PredicateT>
iterator_range<
filter_iterator<detail::IterOfRange<RangeT>,
PredicateT>>
make_filter_range(RangeT&& Range, PredicateT Pred)
Description
Convenience function that takes a range of elements and a predicate, and return a new filter_iterator range. FIXME: Currently if RangeT & & is a rvalue reference to a temporary, the lifetime of that temporary is not kept by the returned range object, and the temporary is going to be dropped on the floor after the make_iterator_range full expression that contains this function call.
Declared at: llvm/include/llvm/ADT/STLExtras.h:426
Templates
- RangeT
- PredicateT
Parameters
- RangeT&& Range
- PredicateT Pred