19 Diagnostics library [diagnostics]

19.3 Assertions [assertions]

The header <cassert>, described in (Table [tab:diagnostics.hdr.cassert]), provides a macro for documenting C++ program assertions and a mechanism for disabling the assertion checks.

Table 42 — Header <cassert> synopsis
TypeName(s)
Macro: assert

The contents are the same as the Standard C library header <assert.h>.

See also: ISO C 7.2.