#ifndef FIX_INCLUDED #define FIX_INCLUDED // This class is certainly inadequate. It’s missing several ctors, // has no assignment operator, etc. template class fix { public: typedef unsigned int size_type; typedef T *iterator; constexpr size_type size() const { return N; } T& operator[] (size_type index) { return data[index]; } iterator begin() { return &data[0]; } iterator end() { return &data[N]; } private: T data[N]; }; #endif /* FIX_INCLUDED */