Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > forward declare a template class

Reply
Thread Tools

forward declare a template class

 
 
amit gulati
Guest
Posts: n/a
 
      11-17-2003
Is it possible to forward declare a template class using "class XXX".
If yes, then what is the syntax??

 
Reply With Quote
 
 
 
 
Victor Bazarov
Guest
Posts: n/a
 
      11-17-2003
"amit gulati" <(E-Mail Removed)> wrote...
> Is it possible to forward declare a template class using "class XXX".
> If yes, then what is the syntax??


Yes:

template< arguments > class XXX;


Victor


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
private forward declare, public class. What does the standard say? Daniel T. C++ 1 01-20-2009 12:50 AM
How can I declare and define a friend template function in a template class? =?gb2312?B?wfXquw==?= C++ 10 08-01-2007 01:48 AM
Forward declare a templatized class mark.moore@notlimited.com C++ 23 01-31-2006 05:28 PM
How to forward declare a class in namespace? yuliy@gmx.de C++ 4 11-29-2005 12:31 PM
A parameterized class (i.e. template class / class template) is not a class? christopher diggins C++ 16 05-04-2005 12:26 AM



Advertisments