I am wondering if in c++11 you can calculate this:
if (a == b || a == c) {
// do something
}
In a much shorter and more concise way such as something like this:
if (a == (b || c)) {
// do something
}
(I know that the above code would not work [it would calculate if b or c and then check if the result is equal to a]. I am wondering if there is a similar way to implement the code before: if (a == b || a == c) {}
)