MCPcopy Create free account
hub / github.com/boostorg/compute / minmax_element

Function minmax_element

include/boost/compute/algorithm/minmax_element.hpp:36–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34/// \see max_element(), min_element()
35template<class InputIterator, class Compare>
36inline std::pair<InputIterator, InputIterator>
37minmax_element(InputIterator first,
38 InputIterator last,
39 Compare compare,
40 command_queue &queue = system::default_queue())
41{
42 if(first == last){
43 // empty range
44 return std::make_pair(first, first);
45 }
46
47 return std::make_pair(min_element(first, last, compare, queue),
48 max_element(first, last, compare, queue));
49}
50
51///\overload
52template<class InputIterator, class Compare>

Callers

nothing calls this directly

Calls 3

make_pairFunction · 0.85
min_elementFunction · 0.85
max_elementFunction · 0.85

Tested by

no test coverage detected