Skip to content

Commit 529213e

Browse files
authored
Update c++14-features.md
1 parent 10e83f5 commit 529213e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c++14-features.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ written out [String]
132132
- [x] std::exchange
133133
```Replaces the value of obj with new_value and returns the old value of obj. Not to be confused with std::swap, where swap takes in two parameters and swaps the values, and returns nothing.```
134134
* Potentially helpful when writing move assignment or constructors.
135-
example at the bottom of page: https://docs.w3cub.com/cpp/utility/exchange/
135+
example at the bottom of page: https://docs.w3cub.com/cpp/utility/exchange/ or https://en.cppreference.com/w/cpp/utility/exchange
136136
- [x] “Fixing constexpr member functions without const”
137137

138138
If C++14 `constexpr` member functions are not declared `const`, they are `mutable` and may modify the objects of which they are members, as long as that object's lifetime started during the execution of the `constexpr` method.

0 commit comments

Comments
 (0)