[Pooma Logo]

Profiling Templates


Instantiations of templated entities uniquely identify the functions
template <class T>
class TemplClass { // Simple class template with Get and Set methods
  private :
    T Data;
  public :
 
  T SetData(T d) {
    Data = d;
    return Data;
  }
}

What is the time spent in

TemplClass::SetData  int(int)
TemplClass::SetData  vector<int> (vector<int>) 
TemplClass::SetData  double(double)