/*ident "@(#)cls4:demo/lang/Array_RC.C 1.1" */ /*######################################################################### # Copyright (c) 1991 AT&T # All Rights Reserved # # THIS IS PROPRIETARY SOURCE CODE OF AT&T # # This code has been published in # C++ Primer, 2nd Edition # by Stanley Lippman # Addison_Wesley Publishing Company # #########################################################################*/ #include "Array_RC.h" #include "Array.C" template Array_RC::Array_RC(int sz) : Array(sz) {} template Array_RC::Array_RC(const Array_RC& r) : Array(r) {} template Array_RC::Array_RC(Type *ar,int sz) : Array(ar,sz) {} template Type &Array_RC::operator[](int ix) { assert(ix >= 0 && ix < size); return ia[ix]; }