|
Functions |
| template<typename R, typename T> T | r_accumulate (R r, T val) |
| | accumulate() for ranges
|
| template<typename R, typename T, typename P> T | r_accumulate (R r, T val, P pr) |
| | accumulate() for ranges
|
| template<typename R, typename O> O | r_copy (R r, O o) |
| | Copies the contents of the range to the output iterator.
|
| template<typename R, typename T> ss_size_t | r_count (R r, const T &val) |
| | Counts the number of instances of a given value in the range.
|
| template<typename R, typename P> ss_size_t | r_count_if (R r, P pr) |
| | Counts the number of instances matching the given predicate in the range.
|
| template<typename R> ss_ptrdiff_t | r_distance (R r) |
| | Counts the number of instances in the range.
|
| template<typename R1, typename R2> ss_bool_t | r_equal (R1 r1, R2 r2) |
| | Determines whether two ranges are equal.
|
| template<typename R1, typename R2, typename P> ss_bool_t | r_equal (R1 r1, R2 r2, P pr) |
| | Determines whether two ranges are equal, as defined by a predicate.
|
| template<typename R, typename T> R | r_exists (R r, T const &val) |
| | Determines whether the given value exists in the range.
|
| template<typename R, typename P> R | r_exists_if (R r, P pr) |
| | Determines whether a value matching the given predicate exists in the range.
|
| template<typename R, typename P, typename T> R | r_exists_if (R r, P pr, T &result) |
| | Determines whether a value matching the given predicate exists in the range.
|
| template<typename R, typename T> void | r_fill (R r, const T &val) |
| | Sets the elements in the range to the given value.
|
| template<typename R, typename S, typename T> void | r_fill_n (R r, S n, T const &val) |
| | Sets the first n elements in the range to the given value.
|
| template<typename R, typename T> R | r_find (R r, T const &val) |
| | Finds the first instance of the given value in the range.
|
| template<typename R, typename P> R | r_find (R r, P pr) |
| | Finds the first instance of a value in the range matching the given predicate.
|
| template<typename R, typename F> F | r_for_each (R r, F f) |
| | Applies the given function to every element in the range.
|
| template<typename R, typename F> void | r_generate (R r, F f) |
| | Sets each element in the range to the result of the given function.
|
| template<typename R> R::value_type | r_max_element (R r) |
| | Evaluates the maximum element in the range.
|
| template<typename R, typename F> R::value_type | r_max_element (R r, F f) |
| | Evaluates the maximum element in the range evaluated according to the given function.
|
| template<typename R> R::value_type | r_min_element (R r) |
| | Evaluates the minimum element in the range.
|
| template<typename R, typename F> R::value_type | r_min_element (R r, F f) |
| | Evaluates the minimum element in the range evaluated according to the given function.
|
| template<typename R, typename T> void | r_replace (R r, T oldVal, T newVal) |
| | Replaces all elements of the given old value with the new value.
|
| template<typename R, typename P, typename T> void | r_replace_if (R r, P pr, T newVal) |
| | Replaces all elements matching the given predicate with the new value.
|