I saw this in a C++ tutorial video i'm watching but he never talks about it so what is this and what does it do, please explain in plain simple english.
This is the code that is in the video:
1 2 3 4 5 6 7
#include <iostream>
usingnamespace std;
template <class FIRST, class SECOND>
FIRST smaller(FIRST a, SECOND b){
return (a<b?a:b);
}
Also, what is a:b doing?? and is "smaller" a keyword? he uses it early in the tutorial without the line of code you see and it isnt declared as a string name or any other data type name so i assume its a keyword correct?