tmp/tmpu14ingns/{from.md → to.md}
RENAMED
|
@@ -2,13 +2,19 @@
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
constexpr bool is_constant_evaluated() noexcept;
|
| 5 |
```
|
| 6 |
|
| 7 |
-
*
|
| 8 |
-
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
[*Example 1*:
|
| 12 |
|
| 13 |
``` cpp
|
| 14 |
constexpr void f(unsigned char *p, int n) {
|
|
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
constexpr bool is_constant_evaluated() noexcept;
|
| 5 |
```
|
| 6 |
|
| 7 |
+
*Effects:* Equivalent to:
|
| 8 |
+
|
| 9 |
+
``` cpp
|
| 10 |
+
if consteval {
|
| 11 |
+
return true;
|
| 12 |
+
} else {
|
| 13 |
+
return false;
|
| 14 |
+
}
|
| 15 |
+
```
|
| 16 |
|
| 17 |
[*Example 1*:
|
| 18 |
|
| 19 |
``` cpp
|
| 20 |
constexpr void f(unsigned char *p, int n) {
|