Update CPP11.md (#109)

* Update CPP11.md

semicolons absence

* Update README.md

semicolons absence
This commit is contained in:
dimalosev0605
2022-02-23 18:54:35 +03:00
committed by GitHub
parent 1f1461ecfc
commit cb50e8e5a6
2 changed files with 4 additions and 4 deletions

View File

@@ -82,10 +82,10 @@ void f(int&& x) {}
f(x); // calls f(int&) f(x); // calls f(int&)
f(xl); // calls f(int&) f(xl); // calls f(int&)
f(3); // 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(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). See also: [`std::move`](#stdmove), [`std::forward`](#stdforward), [`forwarding references`](#forwarding-references).

View File

@@ -1338,10 +1338,10 @@ void f(int&& x) {}
f(x); // calls f(int&) f(x); // calls f(int&)
f(xl); // calls f(int&) f(xl); // calls f(int&)
f(3); // 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(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). See also: [`std::move`](#stdmove), [`std::forward`](#stdforward), [`forwarding references`](#forwarding-references).