Syntax of C++ Template Template Parameters -


I'm having trouble understanding the syntax of the C ++ template template parameter. I think according to the excellent description, Why are they useful, I work hard to understand their syntax. Two examples taken from the above mentioned website (two others):

  template & typ; Name, T, Template & lt; Typename & gt; Class Cnt & gt; Class pile;   

and

  template & lt; Template & lt; Typename, typename & gt; Class Cnt & gt; Class wrapper 3;   

It is impossible to generalize such announcements without clearly understanding the logic behind this syntax. It is difficult to remember and does not help much.

EDIT: I know that my attempt on a question came similar to an observation. How to interpret the Template Template Parameters syntax to speak what I'm asking every day. I can do it with C ++ syntax and all other programming languages ​​I have learned. Although I'm having difficulty clarifying the syntax of the C ++ template template parameter to me, I am David Vandeword and Nicolai M. Jostis has found the book "C ++ Templates: The Guides", and it's a good book, but it has not helped me to understand this syntax, will agree with many, the best is oddly.

This is not so mysterious about this: Remove your template template parameters from the original template:

  template & lt; Typename & gt; ClassCent   

Any class template fits with a type of argument, such as

  template   

And you can use your original template

  stack & lt; Int, A & gt; As will. S;    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

c# - Confused over DLL entry points (entry point not found exception) -