boost::simd::downgrade< T, Sign > Struct Template Reference

Description

template<typename T, typename Sign = dispatch::sign_of_t<T>>
struct boost::simd::downgrade< T, Sign >

For any fundamental type T, provides a member typedef type which is a type of the same category but with a halved size if possible.

For any composite type T, provides a member typedef type which is a type of same model but with its primitive type replaced by a type of the same category but with a halved size if possible.

Example
assert(std::is_same<di32,std::int16_t>::value);
assert(std::is_same<di32,std::uint8_t>::value);
assert(std::is_same<dp32,boost::simd::pack<float>>::value);
Template Parameters
TType to downgrade
SignSign of the downgraded type. Defaults, to signof_t<T>

Public Types

using type = implementation defined
 Downgraded type derived from T.