Dissecting the template class