<cassert>
Includes the C Standard library header <assert.h> and adds the associated names to the std
namespace. Including this header ensures that the names declared using external linkage in the C Standard library header are declared in the std
namespace.
Note
<assert.h> doesn't define the static_assert
macro.
Syntax
#include <cassert>
Macros
#define assert(E)
Remarks
assert(E)
is only constant, if NDEBUG is defined where assert
is last defined or redefined, or E converted to bool evaluates to true
.
See also
assert Macro, _assert, _wassert
Header Files Reference
C++ Standard Library Overview
Thread Safety in the C++ Standard Library