For example template function

Includes.h definition, it should be a global function, it is to print to the Senate:

template<typename T>
void record(T info)
{
    qDebug()<<info;
}

It can be modified according to the print function on different platforms, here is the Qt platform, using qDebug, also in C ++ std :: cout

use:

Record < int > ( . 1 ); // first header comprising

 

Guess you like

Origin www.cnblogs.com/judes/p/11640890.html