Bolt
1.3
C++ template library with support for OpenCL
|
Functions | |
template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator > | |
OutputIterator | bolt::amp::merge (InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result) |
merge returns the result of combining the two sorted range [first1, last1] and [first2, last2] in to a single sorted range [result , result + (last1-first1) + ( last2-first2)] | |
template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator > | |
OutputIterator | bolt::amp::merge (bolt::amp::control &ctl, InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result) |
template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator , typename StrictWeakCompare > | |
OutputIterator | bolt::amp::merge (InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, StrictWeakCompare comp) |
merge returns the result of combining the two sorted range [first1, last1] and [first2, last2] in to a single sorted range [result , result + (last1-first1) + ( last2-first2)] | |
template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator , typename StrictWeakCompare > | |
OutputIterator | bolt::amp::merge (bolt::amp::control &ctl, InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, StrictWeakCompare comp) |
OutputIterator bolt::amp::merge | ( | InputIterator1 | first1, |
InputIterator1 | last1, | ||
InputIterator2 | first2, | ||
InputIterator2 | last2, | ||
OutputIterator | result | ||
) |
merge
returns the result of combining the two sorted range [first1, last1] and [first2, last2] in to a single sorted range [result , result + (last1-first1) + ( last2-first2)]
The merge
operation is similar the std::merge function
ctl | Optional Control structure to control command-queue, debug, tuning. |
first1 | The beginning of the first input range. |
last1 | The end of the first input range. |
first2 | The beginning of the second input range. |
last2 | The end of the second input range. |
InputIterator1 | An iterator that can be dereferenced for an object, and can be incremented to get to the next element in a sequence. |
InputIterator2 | An iterator that can be dereferenced for an object, and can be incremented to get to the next element in a sequence. |
OutputIteratoris | a model of Output Iterator |
The following code example shows the use of merge
operator.
OutputIterator bolt::amp::merge | ( | InputIterator1 | first1, |
InputIterator1 | last1, | ||
InputIterator2 | first2, | ||
InputIterator2 | last2, | ||
OutputIterator | result, | ||
StrictWeakCompare | comp | ||
) |
merge
returns the result of combining the two sorted range [first1, last1] and [first2, last2] in to a single sorted range [result , result + (last1-first1) + ( last2-first2)]
The merge
operation is similar the std::merge function
ctl | Optional Control structure to control command-queue, debug, tuning. |
first1 | The beginning of the first input range. |
last1 | The end of the first input range. |
first2 | The beginning of the second input range. |
last2 | The end of the second input range. |
comp | Comparison operator. |
InputIterator1 | An iterator that can be dereferenced for an object, and can be incremented to get to the next element in a sequence. |
InputIterator2 | An iterator that can be dereferenced for an object, and can be incremented to get to the next element in a sequence. |
OutputIteratoris | a model of Output Iterator |
StrictWeakCompare | is a model of Strict Weak Ordering. |
The following code example shows the use of merge
operator.