Eigen::internal::array_size< T, EnableIf > Struct Template Reference

#include <Meta.h>

Static Public Attributes

static constexpr Index value = Dynamic
 

Detailed Description

template<typename T, typename EnableIf = void>
struct Eigen::internal::array_size< T, EnableIf >

Provides access to the number of elements in the object of as a compile-time constant expression. It "returns" Eigen::Dynamic if the size cannot be resolved at compile-time (default).

Similar to std::tuple_size, but more general.

It currently supports:

  • any types T defining T::SizeAtCompileTime
  • plain C arrays as T[N]
  • std::array (c++11)
  • some internal types such as SingleRange and AllRange

The second template parameter eases SFINAE-based specializations.

Member Data Documentation

◆ value

template<typename T , typename EnableIf = void>
constexpr Index Eigen::internal::array_size< T, EnableIf >::value = Dynamic
staticconstexpr

The documentation for this struct was generated from the following file: