Skip to content

Commit 776699a

Browse files
committed
[structure.specifications] Integrate [res.on.expects].
The latter consisted of a single sentence that is best integrated into the place where the Preconditions: element is introduced.
1 parent 3ff4794 commit 776699a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

source/lib-intro.tex

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,8 @@
620620
\item
621621
\expects
622622
the conditions
623-
that the function assumes to hold whenever it is called.
623+
that the function assumes to hold whenever it is called;
624+
violation of any preconditions results in undefined behavior.
624625

625626
\item
626627
\effects
@@ -2976,12 +2977,6 @@
29762977
This applies even to objects such as mutexes intended for thread synchronization.
29772978
\end{note}
29782979

2979-
\rSec3[res.on.expects]{Expects paragraph}
2980-
2981-
\pnum
2982-
Violation of any preconditions specified in a function's \expects element
2983-
results in undefined behavior.
2984-
29852980
\rSec3[res.on.requirements]{Semantic requirements}
29862981

29872982
\pnum

0 commit comments

Comments
 (0)