home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!warwick!uknet!gdt!aber!brw
- From: brw@aber.ac.uk (Benjamin Roy Whittle)
- Newsgroups: comp.lang.c++
- Subject: template question
- Message-ID: <1992Nov9.121452.22811@aber.ac.uk>
- Date: 9 Nov 92 12:14:52 GMT
- Sender: brw@aber.ac.uk (Benjamin Roy Whittle)
- Organization: University of Wales, Aberystwyth
- Lines: 17
-
-
- If I write the following
-
- template<class T>
- class stack { /* public interface stuff push pop etc*/};
-
- but I want to say that the class T should have a function copy available
- for objects of that class, so that the function can be used in the
- implementation of the stack.
-
- How do I do it please?
-
- email appreciated.
-
- ben
-
- brw@aber.ac.uk
-