blaze::PtrdiffT< N > Struct Template Reference

Compile time integral constant wrapper for ptrdiff_t.The PtrdiffT class template represents an integral wrapper for a compile time constant expression of type ptrdiff_t. The value of an PtrdiffT can be accessed via the nested value (which is guaranteed to be of type ptrdiff_t), the type can be accessed via the nested type definition ValueType. More...

#include <PtrdiffT.h>

Inherits blaze::IntegralConstant< ptrdiff_t, N >.

Detailed Description

template<ptrdiff_t N>
struct blaze::PtrdiffT< N >

Compile time integral constant wrapper for ptrdiff_t.

The PtrdiffT class template represents an integral wrapper for a compile time constant expression of type ptrdiff_t. The value of an PtrdiffT can be accessed via the nested value (which is guaranteed to be of type ptrdiff_t), the type can be accessed via the nested type definition ValueType.

using namespace blaze;
PtrdiffT<3>::value // Evaluates to 3
PtrdiffT<5>::ValueType // Results in ptrdiff_t

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