Sun Studio 12 Update 1: C++ User's Guide

6.3.2.3 Explicit Instantiation of Template Class Function Members

To explicitly instantiate a template class function member, follow the template keyword by a declaration (not definition) for the function, with the function identifier qualified by the template class, followed by the template arguments.


template int Array<char>::GetSize();

template int String<19>::length();