I'm just starting to try C++ 11, and was wondering if I could improve this line sort of thing from my C++03 code:
1 2 3 4 5 6 7 8
if (a == b ||
a == c ||
a == d ||
a == e
)
{
// do something
}
I wasn't able to find anything in the new arithmetic functions, but if there is something that could be used to avoid mentioning "a" 4 times in such a situation that would be nice.. Thanks.