How to find the length of a parameter pack ?

Posted by Eternal Learner on Stack Overflow See other posts from Stack Overflow or by Eternal Learner
Published on 2010-05-05T03:45:20Z Indexed on 2010/05/05 3:48 UTC
Read the original article Hit count: 169

Hi All,

Suppose I have a variadic template function like

template<typename... Args>
unsigned length(Args... args);

How do I find the length of the parameter list ?

© Stack Overflow or respective owner

Related posts about c++0x

Related posts about variadic-functions