STAPL API Reference |
Modules Classes |
Summarize the entire set of elements in the view(s) (e.g., stapl::equal()). More...
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... | |
Summarize the entire set of elements in the view(s) (e.g., stapl::equal()).
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.
pview | One-dimensional view of the input. |
predicate | Unary functor used to check the partitioning. |
This algorithm is non-mutating.
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.
view0 | One-dimensional input view. |
view1 | One-dimensional input view. |