Skip to content

Commit 634a353

Browse files
amadiobernhardmgruber
authored andcommitted
Capitalize consistently and more compact wording
1 parent 609cde9 commit 634a353

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

talk/basicconcepts/inline.tex

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,19 @@
44
\frametitlecpp[98]{Inline keyword}
55
\begin{block}{Inline functions originally}
66
\begin{itemize}
7-
\item applies to a function to tell the compiler to inline it
7+
\item Applies to a function to tell the compiler to inline it
88
\begin{itemize}
9-
\item i.e. replace function calls by the function's content
10-
\item similar to a macro
11-
\end{itemize}
12-
\item only a hint, compiler can still choose to not inline
13-
\item avoids function call overhead
14-
\begin{itemize}
15-
\item but may increase executable size
9+
\item That is, replace function calls by the function's content\\
10+
(similar to how a macro works)
1611
\end{itemize}
12+
\item Only a hint, compiler can still choose to not inline
13+
\item Avoids call overhead at the cost of increasing binary size
1714
\end{itemize}
1815
\end{block}
1916
\begin{exampleblock}{Major side effect}
2017
\begin{itemize}
21-
\item the linker reduces the duplicated functions into one
22-
\item an inline function definition can thus live in header files
18+
\item The linker reduces the duplicated functions into one
19+
\item An inline function definition can thus live in header files
2320
\end{itemize}
2421
\end{exampleblock}
2522
\begin{block}{}
@@ -35,16 +32,16 @@
3532
\frametitlecpp[98]{Inline keyword}
3633
\begin{block}{Inline functions nowadays}
3734
\begin{itemize}
38-
\item compilers can judge far better when to inline or not
35+
\item Compilers can judge far better when to inline or not
3936
\begin{itemize}
4037
\item thus primary purpose is gone
4138
\end{itemize}
42-
\item putting functions into headers became main purpose
43-
\item many types of functions are marked \mintinline{cpp}{inline} by default:
39+
\item Putting functions into headers became main purpose
40+
\item Many types of functions are marked \mintinline{cpp}{inline} by default:
4441
\begin{itemize}
45-
\item class member functions
4642
\item function templates
4743
\item \mintinline{cpp}{constexpr} functions
44+
\item class member functions
4845
\end{itemize}
4946
\end{itemize}
5047
\end{block}
@@ -54,9 +51,9 @@
5451
\frametitlecpp[17]{Inline keyword}
5552
\begin{block}{Inline variables}
5653
\begin{itemize}
57-
\item a global (or \mintinline{cpp}{static} member) variable specified as \mintinline{cpp}{inline}
58-
\item same side effect, linker merges all occurrences into one
59-
\item allows to define global variables/constants in headers
54+
\item Global (or \mintinline{cpp}{static} member) variable specified as \mintinline{cpp}{inline}
55+
\item Same side effect, linker merges all occurrences into one
56+
\item Allows to define global variables/constants in headers
6057
\end{itemize}
6158
\end{block}
6259
\begin{block}{}
@@ -75,7 +72,7 @@
7572
\end{block}
7673
\begin{alertblock}{}
7774
\begin{itemize}
78-
\item Avoid global variables! Constants are fine.
75+
\item Avoid global variables! Global constants are fine.
7976
\end{itemize}
8077
\end{alertblock}
8178
\end{frame}

0 commit comments

Comments
 (0)