Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I recently came through a very stra

Status
Not open for further replies.

SantoshNarayan

Technical User
Jun 6, 2001
13
0
0
IN
I recently came through a very strange piece of text in some book which claimed that Template functions expand inline. Is this true though I highly doubt it ?

template<typename mytype>void func(mytype val)
{
cout<<&quot;This is a simple template function &quot;<<endl;
}

int main()
{
func(11);
func(5.79);
func('S');
return 0;
}

That piece of text claimed that each of the above functions would expand inline within main(). I doubt it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top