forward declare a template class

Discussion in 'C++' started by amit gulati, Nov 17, 2003.

  1. amit gulati

    amit gulati Guest

    Is it possible to forward declare a template class using "class XXX".
    If yes, then what is the syntax??
     
    amit gulati, Nov 17, 2003
    #1
    1. Advertisements

  2. "amit gulati" <> 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
     
    Victor Bazarov, Nov 17, 2003
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. christopher diggins
    Replies:
    16
    Views:
    1,061
    Pete Becker
    May 4, 2005
  2. Binary

    typedef forward declare

    Binary, Dec 5, 2006, in forum: C Programming
    Replies:
    20
    Views:
    1,099
    santosh
    Jan 27, 2007
  3. Divick
    Replies:
    9
    Views:
    790
    Divick
    Nov 8, 2005
  4. Replies:
    4
    Views:
    4,110
    Neil Cerutti
    Nov 29, 2005
  5. Replies:
    23
    Views:
    3,906
    Shezan Baig
    Jan 31, 2006
  6. =?gb2312?B?wfXquw==?=
    Replies:
    10
    Views:
    932
    Victor Bazarov
    Aug 1, 2007
  7. Daniel T.
    Replies:
    1
    Views:
    404
    Kai-Uwe Bux
    Jan 20, 2009
  8. A L
    Replies:
    1
    Views:
    715
    Alf P. Steinbach /Usenet
    Aug 25, 2010
Loading...