chsvlib
chsv helper source code
rank< T > Struct Template Reference

Calculates a rank of an array of type T at a compile time. More...

#include <chsvmath.h>

Inheritance diagram for rank< T >:
Collaboration diagram for rank< T >:

Detailed Description

template<class T>
struct Chusov::Math::rank< T >

Calculates a rank of an array of type T at a compile time.

Template Parameters
Tis a type of an object, rank of which is calculated.

Usage:

rank<int[1][2][3]>::value; // is 3
double vec[][3] = {{0.1, 0.2, 0.3}, {0.4, 0.5, 0.6}};
rank<decltype(vec)>::value; //is 2

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