define friend function using template in C++ code example Example: normal class friend with template friend class matrix4x4<float>()