/* * Utility for creating 2D arrays of any type. * Note: Use a vector instead if you can, it's much safer. * * Author: Samuel A. Inverso * * License: * Use this code freely, it is distributed without warranty express or * implied. */ #ifndef MULTI_ARRAY_UTILITIES_ #define MULTI_ARRAY_UTILITIES_ template class MultiArrayUtilities{ public: static T ** create2DArray( int rows, int cols, T initial ); static void delete2DArray( T** ary, int rows ); }; #endif