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
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