npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
PointDimensionality.hh
Go to the documentation of this file.
1 #ifndef NPSTAT_POINTDIMENSIONALITY_HH_
2 #define NPSTAT_POINTDIMENSIONALITY_HH_
3 
4 /*!
5 // \file PointDimensionality.hh
6 //
7 // \brief Compile-time dimensionality detector for classes like std::array
8 //
9 // Author: I. Volobouev
10 //
11 // October 2010
12 */
13 
14 #include "geners/CPP11_array.hh"
15 
16 namespace npstat {
17  /** Compile-time dimensionality detector for classes like std::array */
18  template <class T>
20  {
21  enum {dim_size = T::dim_size};
22  };
23 
24  template <class T, std::size_t N>
25  struct PointDimensionality<CPP11_array<T,N> >
26  {
27  enum {dim_size = N};
28  };
29 }
30 
31 #endif // NPSTAT_POINTDIMENSIONALITY_HH_
Definition: AbsArrayProjector.hh:14
Definition: PointDimensionality.hh:20