mirror of
https://github.com/boostorg/contract.git
synced 2026-01-27 18:52:16 +00:00
12 lines
206 B
C++
12 lines
206 B
C++
|
|
//[inc_no_contract
|
|
int inc(int& x)
|
|
// Precondition: x < std::numeric_limits<int>::max()
|
|
// Postcondition: x == oldof(x) + 1
|
|
// result == oldof(x)
|
|
{
|
|
return x++;
|
|
}
|
|
//]
|
|
|