•template <class T>
•class CSamples
•{
• T Max() const;
•// Rest of the template definition...
•};
•
•template<class T>
•T CSamples<T>::Max() const
•{
• T theMax = m_Values[0];
• for(int i = 1; i < m_Free; i++)
• if(m_Values[i] > theMax)
– theMax = m_Values[i];
–   return theMax;
•}