Syntax of out-of-class definition of a template member function of a template class
template<typename A, typename B>
class mindF_ck
{
template<typename C>
inline bool ouch(C & c_in);
}开发者_运维问答;
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) {
}
template <typename A, typename B>
template <typename C>
bool mindf_ck<A, B>::ouch(C& c_in) {
// ... code ...
}
精彩评论