About 8 results
Open links in new tab
  1. contract_assert statement (since C++26) - cppreference.dev

    A contract_assert statement is a contract assertion that may appear in a function or lambda body to verify an internal condition. It ensures the condition holds during execution, triggering a violation (e.g. …

  2. assert - cppreference.com - C++ Reference

    The definition of the macro assert depends on another macro, NDEBUG, which is not defined by the standard library. 1) If NDEBUG is defined as a macro name at the point in the source code where …

  3. Contract assertions (since C++26) - cppreference.com - C++ Reference

    Contract assertions are introduced by function contract specifiers and contract_assert statements. Each contract assertion has a predicate , which is an expression of type bool.

  4. assert - cppreference.com - C++ Reference

    The definition of the macro assert depends on another macro, NDEBUG, which is not defined by the standard library. If NDEBUG is defined as a macro name at the point in the source code where …

  5. C++ keyword:contract_assert(since C++26) - cppreference.dev

    < cpp ‎ | keyword C++ Compiler support Freestanding and hosted Language Standard library Standard library headers Named requirements Feature test macros (C++20) Language support library …

  6. Standard library header <assert.h> - cppreference.com - C++ Reference

    aborts the program if the user-specified condition is not true. May be disabled for release builds (function macro) [edit]

  7. static_assert declaration (since C++11) - cppreference.dev

    Explanation ... A static_assert declaration may appear at namespace and block scope (as a block declaration) and inside a class body (as a member declaration). If bool-constexpr is well-formed and …

  8. C++ language - cppreference.com - C++ Reference

    This is a reference of the core C++ language constructs.

  9. C++ keyword:static_assert(since C++11) - cppreference.dev

    < cpp ‎ | keyword C++ Compiler support Freestanding and hosted Language Standard library Standard library headers Named requirements Feature test macros (C++20) Language support library …

  10. Declarations - cppreference.com - C++ Reference

    Declarations are how names are introduced (or re-introduced) into the C++ program. Not all declarations actually declare anything, and each kind of entity is declared differently. Definitions are declarations …