This PR introduces a native CMake’s way to test newer C++ standards.
Also see: #30735.
To configure builds with newer standards, run:
0$ cmake -B build -DCMAKE_CXX_STANDARD=23
1# or
2$ cmake -B build -DCMAKE_CXX_STANDARD=26 # Requires CMake 3.25 or newer.