Chris
Chris

Reputation: 459

What means the notation T&&.. (2 dot)?

Reading the C++ 11 of Stroustrup, at chapter about variadic template there is a notation: T&&.. with only 2 dots. I don't understand why is not with full ellipsis ... Could you teach what it means? Thank you.

EDIT: context is:

28.6.3 Forwarding

template<typename F, typename...T>
void call(F&& f, T&&.. t)
{
f(forward<T>(t)...)
}

Upvotes: 1

Views: 103

Answers (1)

NPE
NPE

Reputation: 500773

It's a misprint. The edition I am looking at has:

template<typename F, typename ... T>
void call(F&& f, T&&... t)
{
   f(forward<T>(t)...);
}

Upvotes: 3

Related Questions