The range algorithms are defined in this namespace. More...
Classes | |
struct | IsRange |
Metafunction for checking if a type conforms to the oglplus::Range concept. More... | |
class | AnyRange |
A type erasure for types conforming to the oglplus::Range concept. More... | |
Functions | |
template<typename Range , typename Func > | |
Func | ForEach (Range range, Func func) |
Executes a functor on every element in a range . | |
template<typename Range > | |
Range | Find (Range range, typename Range::ValueType value) |
Finds the specified value in a range. More... | |
template<typename Range , typename Predicate > | |
Range | FindIf (Range range, Predicate predicate) |
Finds the first a value satisfying a predicate in a range. More... | |
template<typename Range , typename Transf > | |
Transformed< Range, Transf > | Transform (Range range, Transf transf) |
Transforms a range by an unary function. More... | |
template<typename Range , typename State , typename Op > | |
State | Fold (Range range, State state, Op op) |
Folds the range by using a binary functor and a state value. More... | |
template<typename Range , typename Predicate > | |
Filtered< Range, Predicate > | OnlyIf (Range range, Predicate pred) |
Returns a range containing only elements satisfying a predicate. More... | |
The range algorithms are defined in this namespace.