Article View: comp.os.os2.programmer.tools
Article #39Re: Need simple C++ array class; any suggestions?
From: Keith Bennett
Date: Tue, 25 Apr 1995 00:00
Date: Tue, 25 Apr 1995 00:00
23 lines
1749 bytes
1749 bytes
In article <3lufu7$38a6@news-s01.ny.us.ibm.net>, <vawjr08@ibm.net> wrote: >In <3ltths$1fp@cpcug.org>, kbennett@cpcug.org (Keith Bennett) writes: >>I need an array that will hold pointers to objects of a type I am >>defining. The array should be general enough so that it can be usable >>for any kind of object. The collection classes that come with C/Set++ do >>what I want, but possibly with more overhead than I'd like. > >What's wrong with just an array?? Victor - A regular array assumes that you can predict the maximum number of elements when the array is created. That assumption is not valid for my situation. I need the array to grow dynamically as necessary. - Keith -- -------------------------------------------------------------------------- Keith Bennett Bennett Business Solutions, Inc. Silver Spring, MD USA OS/2 & DOS Software Development kbennett@cpcug.org (301) 871-7696
Technical Details
Message-ID:
<3njepk$rsa@cpcug.org>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3ljtki$8qa@cpcug.org> <3ls85q$g6o@server.st.usm.edu> <3ltths$1fp@cpcug.org> <3lufu7$38a6@news-s01.ny.us.ibm.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1049cc,599b66cf7a406f20 X-Google-Attributes: gid1049cc,public X-Google-Thread: 11307a,599b66cf7a406f20 X-Google-Attributes: gid11307a,public X-Google-Thread: 10cd94,599b66cf7a406f20 X-Google-Attributes: gid10cd94,public From: kbennett@cpcug.org (Keith Bennett) Subject: Re: Need simple C++ array class; any suggestions? Date: 1995/04/25 Message-ID: <3njepk$rsa@cpcug.org> X-Deja-AN: 101477354 references: <3ljtki$8qa@cpcug.org> <3ls85q$g6o@server.st.usm.edu> <3ltths$1fp@cpcug.org> <3lufu7$38a6@news-s01.ny.us.ibm.net> organization: Express Access Online Communications, Greenbelt, MD USA newsgroups: comp.os.os2.programmer.tools,comp.os.os2.programmer.misc,bit.listserv.os2-l