+ 9
"?:" is an ternary operator. Ternary operators are single line if else statement. and in your code as you are using templates. T is the type name of the function func it can be any data type. The compiler will know it's type when you pass the argument to its function. For eg: func(5); means T will be int. func(5.5) means T will be float etc.
3rd Apr 2017, 12:38 PM
Mr.Robot
Mr.Robot - avatar