C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Applications of Template Meta-programming

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ Language (Moderated)
View previous topic :: View next topic  
Author Message
Andy
Guest





PostPosted: Tue Aug 16, 2005 2:40 pm    Post subject: Applications of Template Meta-programming Reply with quote



I want to know about the specific types of applications which Template
Metaprogramming has been used in successfully.

-- Andy


[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]

Back to top
Dan McLeran
Guest





PostPosted: Tue Aug 16, 2005 11:32 pm    Post subject: Re: Applications of Template Meta-programming Reply with quote



I use template meta-programming extensively in the software I write for
embedded test and measurement equipment. Mostly, I use it for
compile-time polymorphism.


[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]

Back to top
Ricky Lung
Guest





PostPosted: Wed Aug 17, 2005 8:57 am    Post subject: Re: Applications of Template Meta-programming Reply with quote



I use expression template in my matrix library: http://exmat.sf.net
Besides what usual expression template enabled linear algebra library
does, exmat also make use of template meta-programming to analysis the
expression tree. This extends the optimization to a higher level.

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]

Back to top
David Abrahams
Guest





PostPosted: Wed Aug 17, 2005 8:59 am    Post subject: Re: Applications of Template Meta-programming Reply with quote

"Andy" <garth_rockett (AT) yahoo (DOT) com> writes:

Quote:
I want to know about the specific types of applications which
Template Metaprogramming has been used in successfully.

http://www.boost-consulting.com/mplbook contains an extensive survey
of software that uses TMP in its chapter on domain-specific embedded
languages.

--
Dave Abrahams
Boost Consulting
www.boost-consulting.com

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]


Back to top
tony_in_da_uk@yahoo.co.uk
Guest





PostPosted: Wed Aug 17, 2005 5:27 pm    Post subject: Re: Applications of Template Meta-programming Reply with quote

Hi Andy. I've used template metaprogramming predominantly for two
purposes: improving the reusability of code such as variants and
typemaps (containers keyed on type) through use of typelists (and hence
the reusability of the systems using the variants and typemaps), and
for trivial compile-time calculations like 2^N or log2(N) when dealing
with enums, bit flags, compression etc.. Applications are financial
middleware. - Tony


[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]

Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ Language (Moderated) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.