Excluding type from variadic template

Viewed 31

I want make something like this. Is it possible?

template<class Main, class ...All>
class SomeClass
{
public:

    std::function<double(All - Main)> function;
}

SomeClass<Y, X, Y, Z> inst;
inst.function(X{}, Z{}); // must be in order like in variadic template

Easy way use double, but it doesn't suit me.

0 Answers
Related