Tuesday, June 20, 2006

Class Template

This is much easier than I thought.

template \ class class-name
{
// class Ttype can be anything
// class-name will be template class created
}

But the function definition is ugly.

template \ void className\::functionName(data_t ob)
{
}

No comments: