Is it possible to have optional template parameter in C++ , for example
template < class T, class U, class V>
class Test {
};
Here I want user to use this class either with V
or without V
Is following possible
Test<int,int,int> WithAllParameter
Test<int,int> WithOneMissing
If Yes how to do this.
See Question&Answers more detail:os