previous | start | next

## Templates (Syntax 17.4 Template Member Function Definition)

Syntax 17.4 : Template Member Function Definition
    template<typename type_variable>
    return_type class_name<type_variable>::function_name(parameters) constopt
    {   statements
    }
Example: |
    template<typename T>
    T Pair<T>::get_first() const
    {
       return first;
    }
Purpose: | Supply the implementation of a member function for a class template.

previous | start | next