| STAPL API Reference |
Modules Classes |
Algorithms related to sorting elements in views. Defined in stapl/algorithms/sorting.hpp. More...
Collaboration diagram for Sorting Related Operations:Functions | |
| template<typename View , typename View2 , typename Pred > | |
| bool | stapl::lexicographical_compare (View const &pview1, View2 const &pview2, Pred const &pred) |
| Determines if the first view is lexicographically less than the second view, using the given functor. More... | |
| template<typename View , typename View2 > | |
| bool | stapl::lexicographical_compare (View const &pview1, View2 const &pview2) |
| Determines if the first view is lexicographically less than the second view. More... | |
| template<typename View1 , typename View2 , typename MergeView > | |
| void | stapl::merge (View1 const &view1, View2 const &view2, MergeView &merged) |
| Merges the two sorted input views into the output view in sorted order. More... | |
| template<typename View , typename Comp > | |
| bool | stapl::is_sorted (View const &view, Comp comp) |
| Computes whether the input view is sorted. More... | |
| template<typename View > | |
| bool | stapl::is_sorted (View const &view) |
| Computes whether the input view is sorted. More... | |
| template<typename View , typename Comp > | |
| View | stapl::is_sorted_until (View const &v, Comp const &c) |
| Finds the range of elements in the input which are sorted. More... | |
| template<typename View > | |
| View | stapl::is_sorted_until (View const &v) |
| Finds the range of elements in the input which are sorted. More... | |
Algorithms related to sorting elements in views. Defined in stapl/algorithms/sorting.hpp.
| bool stapl::lexicographical_compare | ( | View const & | pview1, |
| View2 const & | pview2, | ||
| Pred const & | pred | ||
| ) |
Determines if the first view is lexicographically less than the second view, using the given functor.
| pview1 | One-dimensional view of the first input. |
| pview2 | One-dimensional view of the second input. |
| pred | Binary functor which implements the less operation. |
This algorithm is non-mutating.
| bool stapl::lexicographical_compare | ( | View const & | pview1, |
| View2 const & | pview2 | ||
| ) |
Determines if the first view is lexicographically less than the second view.
| pview1 | One-dimensional view of the first input. |
| pview2 | One-dimensional view of the second input. |
This version calls the predicated version with a default predicate of stapl::less.
| void stapl::merge | ( | View1 const & | view1, |
| View2 const & | view2, | ||
| MergeView & | merged | ||
| ) |
Merges the two sorted input views into the output view in sorted order.
| view1 | One-dimensional view of the first sorted input. |
| view2 | One-dimensional view of the second sorted input. |
| merged | One-dimensional view of the output. |
This algorithm mutates the output.
| bool stapl::is_sorted | ( | View const & | view, |
| Comp | comp | ||
| ) |
Computes whether the input view is sorted.
| view | One-dimensional view of the input. |
| comp | The strict weak ordering comparison functor. |
This algorithm is non-mutating.
| bool stapl::is_sorted | ( | View const & | view | ) |
Computes whether the input view is sorted.
| view | One-dimensional view of the input. |
This version calls the predicated version with a default predicate of stapl::less.
| View stapl::is_sorted_until | ( | View const & | v, |
| Comp const & | c | ||
| ) |
Finds the range of elements in the input which are sorted.
| v | One-dimensional view of the input. |
| c | The strict weak ordering comparison functor. |
This algorithm is non-mutating.
| View stapl::is_sorted_until | ( | View const & | v | ) |
Finds the range of elements in the input which are sorted.
| v | One-dimensional view of the input. |
This version calls the predicated version with a default predicate of stapl::less.
1.8.13