Commit 06b62c16 authored by Felix Hilsky's avatar Felix Hilsky
Browse files

make code look like code

if I understand the comment correctly, 'return a' is one command, to be thought as one, so return should also be in code font
parent b952b7dc
......@@ -518,7 +518,7 @@ Move constructors are used/invoked when:
\begin{itemize}
\item initialization: \cpp{T a = std::move(b);} or \cpp{T a{std::move(b)};}, where \texttt{b} is of type \texttt{T};
\item function argument passing: \cpp{f(std::move(a));}, where \texttt{a} is of type \texttt{T} and \texttt{f} is \cpp{void f(T t)};
\item function return: return \texttt{a}; inside a function such as \cpp{T f()}, where \texttt{a} is of type \texttt{T} which has a move constructor.
\item function return: \texttt{return a}; inside a function such as \cpp{T f()}, where \texttt{a} is of type \texttt{T} which has a move constructor.
\end{itemize}
The default behavior of a move-constructor is to move construct all its members from the members of the passed argument. This default move constructor
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment