◆ saturated_()

template<typename T >
auto boost::simd::saturated_ ( T const &  x)

provides a saturated version of some functors which produce integral typed values on return.

This is peculiarly interesting in SIMD mode, as unlike scalars types, SIMD pack of integers are not promoted during current arithmetic operations and this increases the overflow risks.

Header <boost/simd/function/saturated.hpp>
Semantic
T r = saturated_(func)(< func parameters >);