⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 slide016.html

📁 《Big C++ 》Third Edition电子书和代码全集-Part1
💻 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='slide017.html'">
<h2><font color="#009999">23.2.2 Lists (cont.)</font></h2>
<font size="+1">

<p>Operations unique to <tt>list</tt>:</p>

<table border="1" width="90%" align="center">
	<tr bgcolor="#00ffff">
		<th>Operation</th>
		<th>Description</th>
	</tr>
	<tr align="center">
		<td><tt>merge(<i>list</i>)</tt></td>
		<td>Merge the current (sorted) list with the (sorted) argument list</td>
	</tr>
	<tr align="center">
		<td><tt>remove(<i>value</i>)</tt></td>
		<td>Remove all instances of the given value</td>
	</tr>
	<tr align="center">
		<td><tt>remove(<i>pred</i>)</tt></td>
		<td>Remove values for which <i>pred</i> returns true</td>
	</tr>
	<tr align="center">
		<td><tt>reverse()</tt></td>
		<td>Reverse order of elements</td>
	</tr>
	<tr align="center">
		<td><tt>sort()</tt></td>
		<td>Place the values into sorted order</td>
	</tr>
	<tr align="center">
		<td><tt>sort(<i>comp</i>)</tt></td>
		<td>Place values in order using <tt>comp</tt></td>
	</tr>
	<tr align="center">
		<td><tt>splice(<i>iter</i>, <i>list</i>)</tt></td>
		<td>Splices argument list into the list at given location</td>
	</tr>
	<tr align="center">
		<td><tt>unique()</tt></td>
		<td>Remove duplicate copies of values from <u>sorted</u> list</td>
	</tr>
	<tr align="center">
		<td><tt>unique(<i>pred</i>)</tt></td>
		<td>Remove duplicate values from list sorted w/<i>pred</i></td>
	</tr>
</table>

</font>

<hr>
<center><small>
	<a href='slide015.html'>prev</a>
	|<a href='slide001.html'>top</a>
	|<a href='slide017.html'>next</a>
</small></center>
</div>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -