E.V.E  0.1-beta
eve::expected_cardinal< Type, ABI > Struct Template Reference

Computes the expected cardinal of a given type. More...

Detailed Description

template<typename Type, regular_abi ABI = ::eve::emulated_>
struct eve::expected_cardinal< Type, ABI >

Computes the expected cardinal of a given type.

Required header: #include <eve/arch/expected_cardinal.hpp>

eve::expected_cardinal computed the cardinal of the register able to store values of type Type for a given SIMD ABI as a native register type.

Template Parameters
TypeType of value to assess
ABISIMD ABI to use as reference. Must models eve::regular_abi.

Member types

Name Definition
type The type of cardinal computed for Type


Helper types

template<typename Type, regular_abi ABI = EVE_CURRENT_ABI>
using expected_cardinal_t = typename expected_cardinal<Type, ABI>::type;


Helper variable template

template<typename Type, regular_abi ABI = EVE_CURRENT_ABI>
inline constexpr auto expected_cardinal_v = expected_cardinal_t<Type, ABI>::value;
// Cardinal template inline variable to use with functions like eve::load
template<typename Type, typename ABI = EVE_CURRENT_ABI>
inline constexpr expected_cardinal<Type,ABI> const expected = {};

Inherits eve::fixed< ABI::template expected_cardinal< Type > >.

Inherited by eve::pointer_cardinal< eve::aligned_ptr< Type, Lanes > >.