📄 slide050.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="blendTrans(Duration=2)" http-equiv="Page-Enter">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Copyright" content="2005 John Wiley & Sons">
<meta name="Author" content="Kurt Schmidt">
<script language="JavaScript" src="./config.js"></script>
<script language="JavaScript" src="./pageFormat.js"></script>
<script><!-- // Set title on page
title()
//--></script>
</head>
<body>
<div onclick="document.location='slide051.html'">
<h2><font color="#009999">Chapter Summary</font></h2>
<font size="+1">
<hr color="#00ffff" size="6">
<ol>
<li>A template allows a function or class to be parameterized by type</li>
<li>The template abstracts the actions to be performed</li>
<li>Template arguments are inferred from the values in a function invocation
</li>
<li>Template functions can have the same name as nontemplate functions. The
nontemplates are searched first for a match</li>
<li>Template classes allow the creation of containers that work with many
different types of values</li>
<li>Template classes must be explicitly instantiated in order to declare
new variables</li>
<li>Template arguments can be type names or they can be constants</li>
<li>A <tt>typedef</tt> statement can be used to form an alias for a type
name</li>
<li>Template arguments can be used to set behavior, for example, setting the
comparison algorithm for sorted containers</li>
</ol>
</font>
<hr>
<center><small>
<a href='slide049.html'>prev</a>
|<a href='slide001.html'>top</a>
</small></center>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -