1 #ifndef SPARSEGRID_UTIL_COMMON 2 #define SPARSEGRID_UTIL_COMMON 4 template<
typename base>
9 typedef typename base::value_type bt_type;
15 auto operator[](
int i) -> decltype(b[0])
23 for (
int i = 0; i < b.size() ; i++)
31 operator bt_type()
const 39 template<
typename T,
typename vmpl>
49 auto operator[](
int i) -> decltype(b[i][0])
54 auto operator[](
int i)
const -> decltype(b[i][0])
60 template<
typename chunk_def>
69 template<
unsigned int p>
75 template<
unsigned int p>
convert a type into constant type