Here is the ?

To use a template construct, what phrase must come before the class definition?

My friend said that should be the parameter, but think that its the
argument,

Next ? is

in the statement

List<int> mylist;

the word int is known as the template _______________?

I said it was the parameter, and my friend said that it was the argument.

can anybody help us out???

>Here is the ?
>Next ? is
? is a sentence modifier. It has no meaning by itself in literature. Please spell out the word "question" for those of us that abhor useless abbreviations and shortcuts. Thanks.

>My friend said that should be the parameter, but think that its the argument
The whole thing is called a template declaration. The formal grammar for it is:

[I]template-declaration[/I]:
        export[I](opt)[/I] template < [I]template-parameter-list[/I] > [I]declaration[/I]

Where the declaration at the end is a class or function definition. The parts before the declaration aren't treated as a single unit, and thus don't have a unifying name.

>I said it was the parameter, and my friend said that it was the argument.
The C++ standard calls it a parameter, so you're correct.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.