模板类的模板成员函数的类外定义语法 [英] Syntax of out-of-class definition of a template member function of a template class

查看:33
本文介绍了模板类的模板成员函数的类外定义语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

template<typename A, typename B>
class mindF_ck
{
    template<typename C>
    inline bool ouch(C & c_in);    
};

如何定义 ouch out-of-class 的签名?我向我的大脑发送了一个查询,但它一直是空白的 ;)

How do I define the signature for ouch out-of-class ? I send a query to my brain but it keeps coming up blank ;)

推荐答案

template<typename A, typename B>
template<typename C>
bool mindf_uck<A,B>::ouch(C & c_in) {
}

这篇关于模板类的模板成员函数的类外定义语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆