From 4ed7827f78ad5eda86ba75c89b3b97d19dcffe48 Mon Sep 17 00:00:00 2001
From: Longshan Du You may write a function that takes a Forward Declarations
user code to skip necessary recompilation when headers
change.
- #include
statement
makes it difficult for automatic tooling to discover the module
defining the symbol.Function Overloading
const
std::string&
and overload it with another that
takes const char*
. However, in this case consider
-std::string_view
+std::string_view
instead.class MyClass {
@@ -2133,7 +2133,7 @@
Rvalue References
objects. The syntax is similar to traditional reference
syntax. For example, void f(std::string&&
s);
declares a function whose argument is an
-rvalue reference to a std::string.
std::string
.
When the token '&&' is applied to an unqualified template argument in a function @@ -2850,9 +2850,9 @@
Prematurely marking something as constexpr may cause +
Prematurely marking something as constexpr
may cause
migration problems if later on it has to be downgraded.
-Current restrictions on what is allowed in constexpr
+Current restrictions on what is allowed in constexpr
functions and constructors may invite obscure workarounds
in these definitions.
_
".
Examples of acceptable file names:
@@ -4598,8 +4598,7 @@For by-reference captures, do not leave a space between the -ampersand (&) and the variable name.
+ampersand (&
) and the variable name.
int x = 0; auto x_plus_n = [&x](int n) -> int { return x + n; }@@ -5817,4 +5816,4 @@