Skip to content

Commit 29b754d

Browse files
authored
fixed bookmark quote
1 parent 437713e commit 29b754d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/cpp/constexpr-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ int j = 0;
6262
constexpr int k = j + 1; //Error! j not a constant expression
6363
```
6464
65-
## <a name="constexpr_functions></a> constexpr functions
65+
## <a name="constexpr_functions"></a> constexpr functions
6666
6767
A **constexpr** function is one whose return value can be computed at compile when consuming code requires it. When its arguments are **constexpr** values, and consuming code requires the return value at compile time, for example to initialize a **constexpr** variable or provide a non-type template argument, it produces a compile-time constant. When called with non-**constexpr** arguments, or when its value is not required at compile-time, it produces a value at run time like a regular function. (This dual behavior saves you from having to write **constexpr** and non-**constexpr** versions of the same function.)
6868

0 commit comments

Comments
 (0)