Hi, i have several functions( operator<<() ) wich must work with random types. But there is different realization for some of types. So i must use templates or overload functions. The question is which one is more effective?
You don't want to write a generic template for operator<< (which would be required for specialization) since
the streams already provide operator<< for all of the built-in types.
Let me explain what i want to do. i don't use operator<< as stream operator. i create some class which will be fill buffer, and to copy files to buffer i want use operator<< except CopyMemory or memcpy function. And i want to know which will be more effective?