# C++ keyword: `consteval` (since C++20)

From cppreference.com
< cpp‎ | keyword

### Usage

- `consteval` declaration specifier
- lambda-declarator that explicitly specifies the function call to be an immediate function

`consteval` `if` statement | (since C++23)

### See also

- `if` statement: `if`, `else`
- `constexpr` `if` statement: `constexpr` (`constexpr` `if` statement)
- `switch` statement: `case`, `default` (as the declaration of the default case label), `switch`
- `goto` statement: `goto`
- `continue` statement: `continue`
- `break` statement: `break`
- `return` statement: `return`, `co_return`
- `do-while` loop and `while` loop: `do`, `while`
- `for` loop and range-based `for` loop: `for`

Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/keyword/consteval&oldid=174858"