<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
Tilbakemeldinger
https://aka.ms/ContentUserFeedback.
Kommer snart: Gjennom 2024 faser vi ut GitHub Issues som tilbakemeldingsmekanisme for innhold, og erstatter det med et nytt system for tilbakemeldinger. Hvis du vil ha mer informasjon, kan du se:Send inn og vis tilbakemelding for