description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Learn more about: <cstdbool> |
<cstdbool> |
07/11/2019 |
|
|
44ccb8b2-d808-4715-8097-58ba09ab33ed |
Includes the C standard library header <stdbool.h> and adds the associated names to the std
namespace.
Note
Because the <stdbool.h> header defines macros that are keywords in C++, including it has no effect. The <stdbool.h> header is deprecated in C++. The <cstdbool> header is deprecated in C++17 and removed in the draft C++20 standard.
Header: <cstdbool>
Namespace: std
Including this header ensures that the names declared using external linkage in the C standard library header are declared in the std
namespace.
Header files reference
C++ standard library overview
Thread safety in the C++ standard library