stlab.adobe.com Adobe Systems Incorporated

Functions

template<typename I , typename O , typename F >
filter (I first, I last, O result, F op)
template<typename I , typename O , typename F >
filter (const I &source, O result, F op)
template<typename I , typename O , typename F >
filter (I &source, O result, F op)

Detailed Description

Filter is similar to std::tranform. The op function is passed an instance of an output_iterator and can generate more than (or fewer than) a single result.

The op function is called once for each item in the range [first, last). The result parameter is passed into the first call to op, the result of op is passed to subsequent calls to op.

See also:
std::transform, std::remove
Requirements:
Returns:
Result of last invocation of op or result if [first, last) is empty.
Complexity Guarantees:
Linear. Exactly distance(first, last) calls to op.

Function Documentation

O adobe::filter ( first,
last,
result,
op 
)

filter implementation

Definition at line 82 of file filter.hpp.

O adobe::filter ( const I &  source,
result,
op 
)

filter implementation

Definition at line 108 of file filter.hpp.

O adobe::filter ( I &  source,
result,
op 
)

filter implementation

Definition at line 95 of file filter.hpp.

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google