| View previous topic :: View next topic |
| Author |
Message |
Andy Guest
|
Posted: Tue Aug 16, 2005 2:40 pm Post subject: Applications of Template Meta-programming |
|
|
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
|
Posted: Tue Aug 16, 2005 11:32 pm Post subject: Re: Applications of Template Meta-programming |
|
|
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
|
Posted: Wed Aug 17, 2005 8:57 am Post subject: Re: Applications of Template Meta-programming |
|
|
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
|
Posted: Wed Aug 17, 2005 8:59 am Post subject: Re: Applications of Template Meta-programming |
|
|
"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
|
Posted: Wed Aug 17, 2005 5:27 pm Post subject: Re: Applications of Template Meta-programming |
|
|
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 |
|
 |
|