0
Please, anyone can explain the syntax here?
public: Pair (T a, T b): first(a), second(b) { } between the (T a, T b) and {}, there are first(a) , second(b). what's the syntax mean?
2 Respostas
+ 2
The constructor initializes the variables 'first' and 'second' in class Pair with the values of 'a' and 'b'.
0
thank you Robobrine