|
 |
Orchid XP v8 <voi### [at] dev null> wrote:
> - Templates can do other things besides implementing generics.
I think it suffices to say that with C++ templates you can, for example,
calculate at *compilation time* whether a certain number is prime or not.
Moreover, you can even do that without using any integer literals or
any basic type, such as 'int'. (Although doing it like that is really
not the most efficient way.)
--
- Warp
Post a reply to this message
|
 |