From -6823443648998002909
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,f0db50d81b8463ea
X-Google-Attributes: gidf78e5,public
From: ziporama@aol.com (Ziporama)
Subject: Re: Member functions of class templates
Date: 1997/12/29
Message-ID: <19971228060301.BAA22697@ladder01.news.aol.com>#1/1
X-Deja-AN: 311073273
References: <34921828.50691187@ix.netcom.com>
X-Original-Date: Sun, 28 Dec 1997 01:04:00 -0500
Originator: austern@isolde.mti.sgi.com
Organization: AOL http://www.aol.com
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBVAwUBNKfgFEy4NqrwXLNJAQH0XgIAh7hMFH4GNNaa0IrajdCQME38N0UCfoDI Yt/6AjaHEeefTSGDH4deMyQRc2xpkPjP9To1b5aLbmy6bgYcY5C6fA== =zLSP
Newsgroups: comp.std.c++


Paul D. DeRocco writes:

>
>Luddy Harrison wrote:
>> 
>> Section 14.5.1.1 of CD2 says this:
>> 
>>    A member function of a class template is implicitly a member
>>    function template with the template-parameters of its class
>>    template as its template parameters.
>> 
>> Could someone familiar with the intent behind this wording give me an
>> example of this rule at work?
>
>It's simpler than you think. All it means is that when you instantiate the
>class, you also instantiate the member function. Since there's a different
>version of the class for each combination of template parameters, there's
>also
>a different version of the member function, even though the declaration of
>the
>member function doesn't show the <...> notation.
>
>-- 
>
>Ciao,
>Paul
>---

Thanx Paul!
I am just a newbie, trying to figure it all out......you didn't just give me a
decent explanation.....you gave me another way of looking at code. And it
doesn't even matter if the explaination is correct or not! (although i suspect
it is, at least trivially)

>[ comp.std.c++ is moderated.  To submit articles: Try just posting with your 
>                newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
>  comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
>  Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
>  Comments? mailto:std-c++-request@ncar.ucar.edu 
---
[ comp.std.c++ is moderated.  To submit articles: Try just posting with your 
                newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu 
]



