mirror of
https://github.com/AnthonyCalandra/modern-cpp-features.git
synced 2025-12-17 10:04:35 +03:00
Update CPP11.md (#109)
* Update CPP11.md semicolons absence * Update README.md semicolons absence
This commit is contained in:
4
CPP11.md
4
CPP11.md
@@ -82,10 +82,10 @@ void f(int&& x) {}
|
||||
f(x); // calls f(int&)
|
||||
f(xl); // calls f(int&)
|
||||
f(3); // calls f(int&&)
|
||||
f(std::move(x)) // calls f(int&&)
|
||||
f(std::move(x)); // calls f(int&&)
|
||||
|
||||
f(xr2); // calls f(int&)
|
||||
f(std::move(xr2)) // calls f(int&& x)
|
||||
f(std::move(xr2)); // calls f(int&& x)
|
||||
```
|
||||
|
||||
See also: [`std::move`](#stdmove), [`std::forward`](#stdforward), [`forwarding references`](#forwarding-references).
|
||||
|
||||
@@ -1338,10 +1338,10 @@ void f(int&& x) {}
|
||||
f(x); // calls f(int&)
|
||||
f(xl); // calls f(int&)
|
||||
f(3); // calls f(int&&)
|
||||
f(std::move(x)) // calls f(int&&)
|
||||
f(std::move(x)); // calls f(int&&)
|
||||
|
||||
f(xr2); // calls f(int&)
|
||||
f(std::move(xr2)) // calls f(int&& x)
|
||||
f(std::move(xr2)); // calls f(int&& x)
|
||||
```
|
||||
|
||||
See also: [`std::move`](#stdmove), [`std::forward`](#stdforward), [`forwarding references`](#forwarding-references).
|
||||
|
||||
Reference in New Issue
Block a user