function object class with template c++ code example Example: cpp how to create an object of template class template class Graph<string>;