4 ms·
There is #pragma once
It's not standard, but it is supported by many compilers.
There is #pragma once
It's not standard, but it is supported by many compilers.
True, supported by GCC, Clang and Visual Studio and probably other compilers ...
I wish for a standard #once directive. It should be very simple to implement, increase preprocessing speed and reduce the size of visually disturbing boilerplate in header files.