Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.15 KB

cassert.md

File metadata and controls

37 lines (27 loc) · 1.15 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: <cassert>
<cassert>
11/04/2016
<cassert>
cassert header
6ead15a3-ac45-4075-be8e-350bca995c26

<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