CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Template<> (http://www.cfd-online.com/Forums/openfoam/75227-template.html)

ata April 20, 2010 02:29

Template<>
 
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

l_r_mcglashan April 20, 2010 04:46

Have a look here:

http://www.cplusplus.com/doc/tutorial/templates/

what you're looking for is explained under template specialisation. Hope it helps.

ata April 20, 2010 07:31

Thanks
 
Hi Laurence R. McGlashan
I hope you are well. Thank you very very much for your response.
Best regards

Ata


All times are GMT -4. The time now is 23:17.