Member Function Templates

Any member function (inlined or noninlined) declared within a class template is implicitly a function template. When a template class is declared, it implicitly generates template functions for each function defined in the class template. If a class template is instantiated, only the function templates whose instantiations will actually be used by the resulting template class are instantiated.



Member Function Templates