Can anybody please let me know the best way to accomplish this.
Say, I have a template function like
template<typename ARGUMENT>
void get_result(ARGUMENT &ag)
{
// arg can be a single object of a particular object or list of objects of that particular class.
//rest
}
Is there a way that I can check if the &ag is a single object or list of objects. Also, with the given template interface.
It does not matter if the answer is by template specification in some way by a class interface. Only thing is I do not want to specify the object type or list type.
Ex. ag = int or ag = list
CB