/* -*- C++ -*- */ /************************************************************************* * Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch) * * For the licensing terms see the file COPYING * ************************************************************************/ // #ifndef G__TEMPLATE_H // #define G__TEMPLATE_H #include using namespace std; #ifndef __hpux #define MEMFUNCTMPLT #endif template class ary { public: T body[SZ]; int sz; public: #if defined(MEMFUNCTMPLT) || defined(__MAKECINT__) ary(T os=0,T gain=0) { int i; sz = SZ; for(i=0;i G__dummy; #endif #if !defined(MEMFUNCTMPLT) && !defined(__MAKECINT__) template ary::ary(T os,T gain) { int i; sz = SZ; for(i=0;i ary& ary::operator=(ary& a) { int i; for(i=0;i ary ary::operator+(ary& a) { ary result; int i; for(i=0;i void ary::disp() { int i; cout << "display\n"; for(i=0;i a(100,10),b(5,1),c; a.disp(); b.disp(); c = a+b; c.disp(); }