Language
C++
Compiler
gcc HEAD 11.0.1 20210417 (experimental)
Options
Warnings
Boost 1.73.0
C++2b(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2b
Handling the first element outside the loop:
First element: 1
Remaining element: 2
Remaining element: 3
Handling the first element inside the loop:
First element: 1
Remaining element: 2
Remaining element: 3
Exit Code:
0