|
|
|
|
|
|
|
|
|
|
|
|||||||
#include <basic_indirect_range_adaptor.hpp>
Inheritance diagram for indirect_range_adaptor:

Public Methods | |
| indirect_range_adaptor (range_type r) | |
| Constructor. | |
| template<typename T> T | accumulate (T val) const |
Returns the sum of val and the value of each element in the range. | |
| template<typename T, typename P> T | accumulate (T val, P pr) const |
Returns the sum of val and the value of pr applied to each element in the range. | |
| template<typename O> O | copy (O o) const |
Copies each element in the range to the output iterator o. | |
| template<typename T> size_t | count (T const &val) const |
Returns the number of elements in the range that evaluate equal to val. | |
| template<typename P> size_t | count_if (P pr) const |
Returns the number of elements in the range matching the predicate pr. | |
| ptrdiff_t | distance () const |
| Returns the number of elements in the range. | |
| template<typename F> F | for_each (F f) |
Applied the functor f to each element in the array. | |
| template<typename T> ss_bool_t | exists (T const &val) const |
Returns true if the element val exists in the range. | |
| template<typename P> ss_bool_t | exists_if (P pr) const |
Returns true if any element in given predicate pr evaluates true any element in the range. | |
| template<typename P, typename T> ss_bool_t | exists_if (P pr, T &result) const |
Returns true if any element in given predicate pr evaluates true any element in the range, and places the matching element in result. | |
| value_type | max_element () const |
| Returns the value of the maximum elements in the range. | |
| template<typename P> value_type | max_element (P pr) const |
Returns the value of the maximum elements in the range, as determined by the comparand predicate pr. | |
| value_type | min_element () const |
| Returns the value of the minimum elements in the range. | |
| template<typename P> value_type | min_element (P pr) const |
Returns the value of the minimum elements in the range, as determined by the comparand predicate pr. | |
|
|
Constructor.
|
|
||||||||||||
|
Returns the sum of
|
|
|
Returns the sum of
|
|
|
Copies each element in the range to the output iterator
|
|
|
Returns the number of elements in the range that evaluate equal to
|
|
|
Returns the number of elements in the range matching the predicate
|
|
|
Returns the number of elements in the range.
|
|
|
Returns true if the element
|
|
||||||||||||
|
Returns true if any element in given predicate
|
|
|
Returns true if any element in given predicate
|
|
|
Applied the functor
|
|
|
Returns the value of the maximum elements in the range, as determined by the comparand predicate
|
|
|
Returns the value of the maximum elements in the range.
|
|
|
Returns the value of the minimum elements in the range, as determined by the comparand predicate
|
|
|
Returns the value of the minimum elements in the range.
|
|
|
| STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004 |