class templateTest
{
public:
template<typename func>
void process(func function)
{
function();
}
};
templateTest tt;
tt.process(hello);
void hello()
{
std::cout<<"hello"<<std::endl;
}
class templateTest
{
public:
template<typename func>
void process(func function)
{
function();
}
};
templateTest tt;
tt.process(hello);
void hello()
{
std::cout<<"hello"<<std::endl;
}