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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…