C++ identifier with special meaning: pre
(since C++26)
From cppreference.net
< cpp
Usage
function contract specifier: as function precondition
Notes
Feature-test macro | Value | Std | Feature |
---|---|---|---|
__cpp_contracts |
202502L |
(C++26) | Contracts |
Support status
C++26 feature |
Paper(s) |
GCC |
Clang |
MSVC |
Apple Clang |
EDG eccp |
Intel C++ |
Nvidia HPC C++ (ex PGI)* |
Nvidia nvcc |
Cray
|
---|---|---|---|---|---|---|---|---|---|---|
Contracts (FTM)* | P2900R14 |