So long story short I saw my teacher write a function that had a "?" as a non particular example of how he described that in the future we would make our code shorter and better. I don't really know what he did, I tried searching for it in code examples but I only found this line of code that resembles what he had done. My question being: Is there a name for this so I can investigate further? or Is it a combination of things that makes this shorter "if" like function.
MATCHER(IsFalse, negation ? "is true" : "is false") { return !static_cast<bool>(arg); }