int addTwoNum(int a, int b) : (bunch of crap goes here) {
return (a+b);
}
What is it called so I can look up information about it? I tried looking up basic function information, but nothing I saw covered it, but I know I've seen it before.
It looks like a member initializer list (not to be confused with std::initializer_list) but those are only allowed on constructors, not on regular functions.