STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions
stapl::algo_details::range_search_n< T, Predicate > Class Template Reference

Work function invokes sequential (i.e., STL) search_n. Returns information about matches found in the range as well as partial matches found at the front and back of the range. More...

Public Member Functions

 range_search_n (size_t count, T value, const Predicate predicate)
 
template<typename View >
tuple< size_t, bool, typename View::index_type, typename View::index_type, size_t > operator() (View const &v) const
 

Detailed Description

template<typename T, typename Predicate>
class stapl::algo_details::range_search_n< T, Predicate >

Work function invokes sequential (i.e., STL) search_n. Returns information about matches found in the range as well as partial matches found at the front and back of the range.

Template Parameters
TType of the value which is being searched for.
PredicateFunctor which is used to compare element equality.
Note
A more sophisticated algorithm could synthesize the front and back partial discovery into the main search_n call, at the expense of not being able to use std::search_n.

The documentation for this class was generated from the following file: