delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/11/23:44:34

Message-Id: <199711120443.XAA18205@delorie.com>
From: "sl" <SL AT usemail DOT com>
To: "DJGPP mailing list" <djgpp AT delorie DOT com>
Date: Tue, 11 Nov 97 23:48:09
Reply-To: "sl" <SL AT usemail DOT com>
MIME-Version: 1.0
Subject: Containers/Templates etc

Hi,

	It seems I am not the only one confused about Containers/Templates, where it is their purpose, 
implementation or whatever else. Would some care to explain this to us? :)

	What is the purpose of Containers, what are they used for?

	I understand templates are used to have a Class of <insert variable type here> so basicly I can make 
a template called Array and when using it in my program I'd go:

	"Array<int> dummy"

	And dummy would be a variable of type Array of int. Therefore the class Array would handle int as its 
basic variable. Ok, now, what are containers? :)

Gili

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019