Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!microsoft!jimad From: jimad@microsoft.UUCP (Jim ADCOCK) Newsgroups: comp.lang.c++ Subject: Re: Parameterized Types Simulation Keywords: c++ Message-ID: <71039@microsoft.UUCP> Date: 4 Mar 91 21:06:46 GMT References: <3666@gmuvax2.gmu.edu> Reply-To: jimad@microsoft.UUCP (Jim ADCOCK) Organization: Microsoft Corp., Redmond WA Lines: 13 In article <3666@gmuvax2.gmu.edu> spark@gmuvax2.gmu.edu (Sooyong Park) writes: |HAVE YOU TRIED THE FOLLOWING? | |As far as I know, C++ does not provide parameterized types. |Is there any way we can simulate parameterized types ? |For example, to build a class for LIST which has a generic |type, I may program as follows. Please tell me your way |of doing so. The ANSI-C++ committee added parameterized types [aka "templates"] to the working definition of the language in November. Expect more and more compilers to add support for such. See ARM chapter 14 for how templates work.