E.V.E  0.1-beta
eve::detail::wide_cardinal< Size > Struct Template Reference

Cardinal-only element of wide/logical. More...

Detailed Description

template<typename Size>
struct eve::detail::wide_cardinal< Size >

Cardinal-only element of wide/logical.

wide_cardinal acts as a wrapper for the information about the number of lanes in a wide. This separate class is meant to limit compile-time by being instantiated once even if multiple wide instance requires the cardinal.

Template Parameters
SizeType encoding the cardinal of a wide

Public Types

using cardinal_type = Size
 Type describing the number of lanes of current wide.
 

Static Public Member Functions

static constexpr size_type size () noexcept
 Size of the wide in number of lanes.
 
static constexpr size_type max_size () noexcept
 Maximal number of lanes for a given wide.
 
static constexpr bool empty () noexcept
 Check if a wide contains 0 lanes.