partial template specialization

Discussion in 'C++' started by Hicham Mouline, Jan 20, 2009.

  1. hello,

    template <typename M>
    class V {
    ////
    };


    template <typename T>
    class Md; // forward decl

    template <typename T>
    class V < Md<T> > {
    };
    In this order, is this a partial specialization of the primary template V
    when the argument has the form
    Md<T> ?

    template <typename T>
    class Md {
    //definition
    }


    regards,
     
    Hicham Mouline, Jan 20, 2009
    #1
    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. Chandra Shekhar Kumar

    template partial specialization

    Chandra Shekhar Kumar, Jun 24, 2003, in forum: C++
    Replies:
    17
    Views:
    3,212
    tom_usenet
    Jun 25, 2003
  2. Alexander Stippler

    partial specialization of function template

    Alexander Stippler, Aug 15, 2003, in forum: C++
    Replies:
    1
    Views:
    622
    Rob Williscroft
    Aug 15, 2003
  3. Petre Iantu
    Replies:
    1
    Views:
    455
    Petre Iantu
    Aug 17, 2003
  4. skscpp
    Replies:
    2
    Views:
    495
    skscpp
    Oct 1, 2003
  5. Joseph Turian
    Replies:
    2
    Views:
    688
  6. toton
    Replies:
    1
    Views:
    739
  7. vj
    Replies:
    1
    Views:
    615
  8. Hizo
    Replies:
    17
    Views:
    849
    itaj sherman
    Mar 7, 2011
Loading...