Template function inside template class June 6, 2023 by Tarik Write this: template <class T> template <class U> void MyClass<T>::foo() { /* ... */ }