|
[Sponsors] |
April 20, 2010, 03:29 |
Template<>
|
#1 |
Senior Member
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 18 |
Hi FOAMers
In some files of OpenFOAM are templates without parameters, template<> and not template<class T>for example. An example is Scaler.H in $/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/primitives/Scalar Can any one tell me what is this for? Any help will be appreciated. Best regards Ata |
|
April 20, 2010, 05:46 |
|
#2 |
Senior Member
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23 |
Have a look here:
http://www.cplusplus.com/doc/tutorial/templates/ what you're looking for is explained under template specialisation. Hope it helps.
__________________
Laurence R. McGlashan :: Website |
|
April 20, 2010, 08:31 |
Thanks
|
#3 |
Senior Member
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 18 |
Hi Laurence R. McGlashan
I hope you are well. Thank you very very much for your response. Best regards Ata |
|
|
|