I was browsing through Nano-signal-slot source code and hoping it could help me implement signals and slots functionality into my application using C++11 and I came across a portion of code that I haven't seen before.
Portion of code:
/* ... */
template <typename Re_t> class function;
template <typename Re_t, typename... Args>
class function<Re_t(Args...)>
{
void *m_this_ptr;
Re_t(*m_stub_ptr)(void*, Args...);
/* ... */
More specifically:
class function<Re_t(Args...)>
What does do after the class name?
(Args...)
portion). BTW, off-topic, why don't you have a look at Qt, it has a straightforward and extensive (and thread-safe) signal/slot mechanism built in.template <typename Re_t> class function;
and a subsequent partial specialization of said class template:template <typename Re_t, typename... Args> class function<Re_t(Args...)> { /*...*/ };
(Use these terms to find more information.)