STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
Functions

Summarize the entire set of elements in the view(s) (e.g., stapl::equal()). More...

+ Collaboration diagram for Summary Operations:

Functions

template<typename View , typename Predicate >
bool stapl::is_partitioned (View const &pview, Predicate predicate)
 Decides if the input view is partitioned according to the given functor, in that all elements which return true precede all those that do not. More...
 
template<typename View0 , typename View1 >
bool stapl::equal (View0 const &view0, View1 const &view1)
 Compares the two input views and returns true if all of their elements compare pairwise equal. More...
 

Detailed Description

Summarize the entire set of elements in the view(s) (e.g., stapl::equal()).

Function Documentation

◆ is_partitioned()

template<typename View , typename Predicate >
bool stapl::is_partitioned ( View const &  pview,
Predicate  predicate 
)

Decides if the input view is partitioned according to the given functor, in that all elements which return true precede all those that do not.

Parameters
pviewOne-dimensional view of the input.
predicateUnary functor used to check the partitioning.
Returns
True if the input is partitioned, false otherwise.

This algorithm is non-mutating.

◆ equal()

template<typename View0 , typename View1 >
bool stapl::equal ( View0 const &  view0,
View1 const &  view1 
)

Compares the two input views and returns true if all of their elements compare pairwise equal.

Parameters
view0One-dimensional input view.
view1One-dimensional input view.