In C++20, is there a way to annotate a ternary expression with [[likely]]/[[unlikely]] to hint the compiler which of the two outcomes is more likely?
The following syntax doesn't seem to work
condition ? [[likely]] function1() : function2()
Is there a different syntax to annotate ternary expressions? Or will I have to use an if instead?