This question is about C++20\'s [[likely]]/[[unlikely]] feature, not compiler-defined macros.
[[likely]]
[[unlikely]]
This documents (cppreference) only gave an ex
Based on example from Jacksonville’18 ISO C++ Report the syntax is correct, but it seems that it is not implemented yet:
if (a>b) [[likely]] {
10.6.6 Likelihood attributes [dcl.attr.likelihood] draft