Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ashok Kumar, Bharath
so2021
Commits
5203db91
Commit
5203db91
authored
Jul 31, 2021
by
Ashok Kumar, Bharath
Browse files
Update 09_generics.tex
parent
c2553e00
Pipeline
#6880
passed with stage
in 1 minute and 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lecture/09_generics.tex
View file @
5203db91
...
...
@@ -328,7 +328,7 @@ One can instantiate that class and create type aliases to that class. Especially
\item
there is
\underline
{
no
}
space overhead in the instantiated template compared to a hand-written class.
\end{itemize}
Each class template is translated into a regular class at template instantiation. Those instantiations get internally a unique name
t
epending on the
Each class template is translated into a regular class at template instantiation. Those instantiations get internally a unique name
d
epending on the
instantiated template parameters,
\eg
\cpp
{
mypoint<double>
}
$
\Rightarrow
$
\texttt
{
[...]mypointId[...]
}
(in g++)
After instantiation of a template, all its internal types, member functions, member variables and static constants are concrete, have a concrete type
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment