2021-07-01 18:15:12 +02:00
|
|
|
|
|
|
|
#include "base_def.h"
|
|
|
|
|
2021-07-28 20:29:56 +02:00
|
|
|
namespace CNORXZ
|
2021-07-01 18:15:12 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
template <typename T>
|
|
|
|
struct IsArray
|
|
|
|
{
|
|
|
|
static constexpr bool VALUE = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
#define add_array_trait(name) template <typename... X> struct IsArray<##name<X...>> { \
|
|
|
|
static constexpr bool VALUE = true; \
|
|
|
|
}
|
|
|
|
|
2022-09-11 02:48:30 +02:00
|
|
|
add_array_trait(DArrayBase);
|
|
|
|
add_array_trait(MDArrayBase);
|
|
|
|
add_array_trait(DArray);
|
|
|
|
//add_array_trait(FunctionalArray);
|
|
|
|
//add_array_trait(Slice);
|
|
|
|
//add_array_trait(ConstSlice);
|
2021-07-01 18:15:12 +02:00
|
|
|
|
|
|
|
#undef add_array_trait
|
|
|
|
|
|
|
|
}
|