description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Learn more about: <cassert> |
<cassert> |
11/04/2016 |
|
|
6ead15a3-ac45-4075-be8e-350bca995c26 |
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.
#include <cassert>
#define assert(E)
assert(E)
is only constant, if NDEBUG is defined where assert
is last defined or redefined, or E converted to bool evaluates to true
.
assert Macro, _assert, _wassert
Header Files Reference
C++ Standard Library Overview
Thread Safety in the C++ Standard Library