MidPoint#

template<typename T>
constexpr T cub::MidPoint(T begin, T end)#

Computes the midpoint of the integers.

Extra operation is performed in order to prevent overflow.

Returns:

Half the sum of begin and end