From -248717230193948325
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,f0db50d81b8463ea
X-Google-Attributes: gidf78e5,public
From: "Paul D. DeRocco" <pderocco@ix.netcom.com>
Subject: Re: Member functions of class templates
Date: 1997/12/13
Message-ID: <34921828.50691187@ix.netcom.com>#1/1
X-Deja-AN: 298032174
References: <199712111833.LAA15148@ncar.ucar.EDU>
X-Original-Date: Sat, 13 Dec 1997 00:07:52 -0500
Organization: The Booboisie
X-Netcom-Date: Fri Dec 12  9:09:29 PM PST 1997
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBVAwUBNJOKyky4NqrwXLNJAQGjggIAsESXZIcbCO0mCyMsNbJEHI/Nx6DAWlaH lBVPwwMUsKpqGKeLS1xYHu+BDzhy++Q3MYQmmPvHutxPWzaA+ETehw== =s1G2
Newsgroups: comp.std.c++
Originator: austern@isolde.mti.sgi.com


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
---
[ 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 
]



