From cppreference.com
Usage
: as the declaration of the statement
Example
Run this code
#include<iostream>intmain()noexcept{for(inti{0};i<69;++i){if(i==3)[[unlikely]]break;// breaks from the 'for' loopstd::cout<<i;}}Output:
012 See also
statement:
,
statement:
,
(as case label declaration) etc:
statement:
statement:
statement:
loop and
:
,
loop and
: