#ifndef _VALUEARRAY_H_ #define _VALUEARRAY_H_ template struct ValueArray { T data[N]; T &operator[](int index) { return data[index]; } static const int size = N; bool operator!=(ValueArray &other) { return !operator==(other); } bool operator==(ValueArray &other) { for(int i=0;i