|
inlineconstexpr |
Compiler reporting value.
The spy::compiler object can be compared to any other compiler related value to verify if the code being compiled with a specific compiler.
Any compiler related value can be checked for equality or ordering for a given version. The targeted version is then specified using a compiler-dependent literal.
Additionally, any of the compiler related value are convertible to bool. They evaluates to true if they matches the correct compiler currently used.
| Name | Compiler |
|---|---|
spy::clang | Clang |
spy::dpcpp | Intel DPC++/ICPX |
spy::emscripten | Emscripten |
spy::gcc | G++ |
spy::intel | Intel ICC |
spy::msvc | Microsoft Visual Studio |
spy::nvcc | NVIDIA NVCC |