I want to implement is_pointer. I want something like this:
template
bool is_pointer( T t )
{
// implementation
} // return true or fa
You can use "typeid" operator defined in typeinfo.h for this. check this link : http://en.wikipedia.org/wiki/Typeid
The typeid operator will give an object of std::type_info class, which has a name() function returning char *. Once you get the type in string form, you can identify the pointer easily.
Hope it helps.
Romil.