E.V.E
v2022.09.01
eve::expected_cardinal< Type, ABI > Struct Template Reference

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

#include <eve/arch/expected_cardinal.hpp>

Detailed Description

template<typename Type, regular_abi ABI = eve::current_abi_type>
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_type>
using expected_cardinal_t = typename expected_cardinal<Type, ABI>::type;


Helper variable template

template<typename Type, regular_abi ABI = eve::current_abi_type>
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_type>
inline constexpr expected_cardinal<Type,ABI> const expected = {};
Computes the expected cardinal of a given type.
Definition: expected_cardinal.hpp:69