下面一个模板,TArgs前面那...有什么意义?
类名linq_lambda_retriver后<>里面的内容的应该如何理解?
template<typename TClass, typename TResult, typename ...TArgs>
struct linq_lambda_retriver<TResult(__thiscall TClass::*)(TArgs...)const>
{
typedef TResult ResultType;
};
Template parameters
here are template
linq_lambda_retriver
specialized parameters, and they are template parameters with variable length, which means that the return value type is probably
TResult
and the parameter isTArgs...
(this is Parameter pack expansion) The calling convention is a__thiscall
ofTClass
of aconst
member function pointer typeTemplate parameter link description