亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pop_heap.html

?? ISO_C++:C++_STL開發文檔
?? HTML
字號:
<HTML><!--  -- Copyright (c) 1996-1999  -- Silicon Graphics Computer Systems, Inc.  --  -- Permission to use, copy, modify, distribute and sell this software  -- and its documentation for any purpose is hereby granted without fee,  -- provided that the above copyright notice appears in all copies and  -- that both that copyright notice and this permission notice appear  -- in supporting documentation.  Silicon Graphics makes no  -- representations about the suitability of this software for any  -- purpose.  It is provided "as is" without express or implied warranty.  --  -- Copyright (c) 1994  -- Hewlett-Packard Company  --  -- Permission to use, copy, modify, distribute and sell this software  -- and its documentation for any purpose is hereby granted without fee,  -- provided that the above copyright notice appears in all copies and  -- that both that copyright notice and this permission notice appear  -- in supporting documentation.  Hewlett-Packard Company makes no  -- representations about the suitability of this software for any  -- purpose.  It is provided "as is" without express or implied warranty.  --  --><Head><Title>pop_heap</Title><!-- Generated by htmldoc --></HEAD><BODY BGCOLOR="#ffffff" LINK="#0000ee" TEXT="#000000" VLINK="#551a8b" 	ALINK="#ff0000"> <IMG SRC="CorpID.gif"      ALT="SGI" HEIGHT="43" WIDTH="151"> <!--end header--><BR Clear><H1>pop_heap</H1><Table CellPadding=0 CellSpacing=0 width=100%><TR><TD Align=left><Img src = "algorithms.gif" Alt=""   WIDTH = "194"  HEIGHT = "38" ></TD><TD Align=right><Img src = "function.gif" Alt=""   WIDTH = "194"  HEIGHT = "38" ></TD></TR><TR><TD Align=left VAlign=top><b>Category</b>: algorithms</TD><TD Align=right VAlign=top><b>Component type</b>: function</TD></TR></Table><h3>Prototype</h3><tt>Pop_heap</tt> is an overloaded name; there are actually two <tt>pop_heap</tt> functions.    <pre>template &lt;class <A href="RandomAccessIterator.html">RandomAccessIterator</A>&gt;void pop_heap(RandomAccessIterator first, RandomAccessIterator last);template &lt;class <A href="RandomAccessIterator.html">RandomAccessIterator</A>, class <A href="StrictWeakOrdering.html">StrictWeakOrdering</A>&gt;inline void pop_heap(RandomAccessIterator first, RandomAccessIterator last,                     StrictWeakOrdering comp);</pre>                   <h3>Description</h3><tt>Pop_heap</tt> removes the largest element (that is, <tt>*first</tt>) from theheap <A href="#1">[1]</A> <tt>[first, last)</tt>. The two versions of <tt>pop_heap</tt> differ in how they define whether oneelement is less than another.  The first version comparesobjects using <tt>operator&lt;</tt>, and the second compares objects using a<A href="functors.html">function object</A> <tt>comp</tt>.  <P>The postcondition for the first version of <tt>pop_heap</tt> is that<tt><A href="is_heap.html">is_heap</A>(first, last-1)</tt> is <tt>true</tt> and that <tt>*(last - 1)</tt> is theelement that was removed from the heap.The postcondition for the second version is that<tt><A href="is_heap.html">is_heap</A>(first, last-1, comp)</tt> is <tt>true</tt> and that <tt>*(last - 1)</tt> is theelement that was removed from the heap. <A href="#2">[2]</A><h3>Definition</h3>Defined in the standard header <A href="algorithm">algorithm</A>, and in the nonstandardbackward-compatibility header <A href="algo.h">algo.h</A>.<h3>Requirements on types</h3>For the first version:<UL><LI><tt>RandomAccessIterator</tt> is a model of <A href="RandomAccessIterator.html">Random Access Iterator</A>.<LI><tt>RandomAccessIterator</tt> is mutable.<LI><tt>RandomAccessIterator</tt>'s value type is a model of <A href="LessThanComparable.html">LessThan Comparable</A>.<LI>The ordering on objects of <tt>RandomAccessIterator</tt>'s value type is a <i>strict   weak ordering</i>, as defined in the <A href="LessThanComparable.html">LessThan Comparable</A> requirements.</UL>For the second version:<UL><LI><tt>RandomAccessIterator</tt> is a model of <A href="RandomAccessIterator.html">Random Access Iterator</A>.<LI><tt>RandomAccessIterator</tt> is mutable.<LI><tt>StrictWeakOrdering</tt> is a model of <A href="StrictWeakOrdering.html">Strict Weak Ordering</A>.<LI><tt>RandomAccessIterator</tt>'s value type is convertible to   <tt>StrictWeakOrdering</tt>'s argument type.</UL><h3>Preconditions</h3>For the first version:<UL><LI><tt>[first, last)</tt> is a valid range.<LI><tt>[first, last - 1)</tt> is a valid range.  That is, <tt>[first, last)</tt> is   nonempty.<LI><tt>[first, last)</tt> is a heap.  That is, <tt>is_heap(first, last)</tt> is <tt>true</tt>.</UL>For the second version:<UL><LI><tt>[first, last)</tt> is a valid range.<LI><tt>[first, last - 1)</tt> is a valid range.  That is, <tt>[first, last)</tt> is   nonempty.<LI><tt>[first, last)</tt> is a heap.  That is, <tt>is_heap(first, last, comp)</tt> is <tt>true</tt>.</UL><h3>Complexity</h3>Logarithmic.  At most <tt>2 * log(last - first)</tt> comparisons.<h3>Example</h3><pre>int main(){  int A[] = {1, 2, 3, 4, 5, 6};  const int N = sizeof(A) / sizeof(int);  make_heap(A, A+N);  cout &lt;&lt; &quot;Before pop: &quot;;  copy(A, A+N, ostream_iterator&lt;int&gt;(cout, &quot; &quot;));  pop_heap(A, A+N);  cout &lt;&lt; endl &lt;&lt; &quot;After pop: &quot;;  copy(A, A+N-1, ostream_iterator&lt;int&gt;(cout, &quot; &quot;));  cout &lt;&lt; endl &lt;&lt; &quot;A[N-1] = &quot; &lt;&lt; A[N-1] &lt;&lt; endl;}</pre><P>The output is<pre>Before pop: 6 5 3 4 2 1 After pop: 5 4 3 1 2 A[N-1] = 6</pre><h3>Notes</h3><P><A name="1">[1]</A>A heap is a particular way of ordering the elements in a range of<A href="RandomAccessIterator.html">Random Access Iterators</A> <tt>[f, l)</tt>.  The reason heaps are useful(especially for sorting, or as priority queues) is that they satisfytwo important properties.  First, <tt>*f</tt> is the largest element in theheap.  Second, it is possible to add an element to a heap (using<tt><A href="push_heap.html">push_heap</A></tt>), or to remove <tt>*f</tt>, in logarithmic time.Internally, a heap is a tree represented as a sequential range.The tree is constructed so that that eachnode is less than or equal to its parent node.<P><A name="2">[2]</A><tt>Pop_heap</tt> removes the largest element from a heap, and shrinks the heap.  This means that if you call keep calling <tt>pop_heap</tt> until onlya single element is left in the heap, you will end up with a sortedrange where the heap used to be.  This, in fact, is exactly how<tt><A href="sort_heap.html">sort_heap</A></tt> is implemented.<h3>See also</h3><tt><A href="make_heap.html">make_heap</A></tt>, <tt><A href="push_heap.html">push_heap</A></tt>, <tt><A href="sort_heap.html">sort_heap</A></tt>, <tt><A href="is_heap.html">is_heap</A></tt>, <tt><A href="sort.html">sort</A></tt><!--start footer--> <HR SIZE="6"><A href="http://www.sgi.com/"><IMG SRC="surf.gif" HEIGHT="54" WIDTH="54"         ALT="[Silicon Surf]"></A><A HREF="index.html"><IMG SRC="stl_home.gif"         HEIGHT="54" WIDTH="54" ALT="[STL Home]"></A><BR><FONT SIZE="-2"><A href="http://www.sgi.com/Misc/sgi_info.html" TARGET="_top">Copyright &copy; 1999 Silicon Graphics, Inc.</A> All Rights Reserved.</FONT><FONT SIZE="-3"><a href="http://www.sgi.com/Misc/external.list.html" TARGET="_top">TrademarkInformation</A></FONT><P></BODY></HTML> 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美四级电影网| 免费观看久久久4p| 一本一道久久a久久精品综合蜜臀| 久久久精品免费观看| 国产精品1区二区.| 亚洲精品一区二区三区在线观看 | 日韩va欧美va亚洲va久久| 欧美日精品一区视频| 亚欧色一区w666天堂| 欧美在线播放高清精品| 香蕉久久夜色精品国产使用方法| 欧美色视频一区| 免费久久99精品国产| 久久精品欧美一区二区三区不卡| 国产99精品在线观看| 中文字幕亚洲在| 欧美午夜在线观看| 免费在线看一区| 中文字幕乱码久久午夜不卡 | 久久成人免费日本黄色| 久久久久久久网| 色哟哟一区二区在线观看| 亚洲福利电影网| 久久天堂av综合合色蜜桃网| 成人激情图片网| 亚洲第一二三四区| 国产亚洲一区二区三区| a亚洲天堂av| 视频一区欧美日韩| 国产香蕉久久精品综合网| 99久久久国产精品免费蜜臀| 亚洲mv在线观看| 国产欧美日韩在线| 欧美系列日韩一区| 国产成人综合亚洲网站| 亚洲综合色丁香婷婷六月图片| 欧美一区二区三区爱爱| 成人性生交大合| 午夜影视日本亚洲欧洲精品| 久久久亚洲午夜电影| 色综合欧美在线| 国产综合久久久久久鬼色| 亚洲精品免费电影| 久久嫩草精品久久久精品 | 一本一道久久a久久精品| 久久99在线观看| 一区二区在线电影| 久久一区二区三区四区| 精品污污网站免费看| 成人在线视频一区| 奇米精品一区二区三区四区| 玉米视频成人免费看| 国产午夜精品一区二区 | 91精品国产高清一区二区三区蜜臀| 成人永久看片免费视频天堂| 久久国产精品露脸对白| 亚洲资源在线观看| 国产日韩影视精品| 欧美成人伊人久久综合网| 91日韩精品一区| 国产精品一区二区三区99| 欧美a一区二区| 亚洲黄色免费电影| 综合欧美亚洲日本| 中文字幕免费不卡| 久久精品夜色噜噜亚洲aⅴ| 91精品福利在线一区二区三区 | 国产一区二区精品久久91| 亚洲va天堂va国产va久| 综合久久一区二区三区| 中文字幕乱码一区二区免费| 久久无码av三级| 久久综合狠狠综合久久激情| 亚洲精品在线三区| 精品福利视频一区二区三区| 51久久夜色精品国产麻豆| 欧美日韩亚洲国产综合| 在线视频中文字幕一区二区| 91浏览器打开| 91天堂素人约啪| 色婷婷综合在线| 91年精品国产| 91福利资源站| 欧美日韩不卡视频| 91精品久久久久久久91蜜桃| 欧美美女视频在线观看| 欧美福利视频导航| 91麻豆精品国产自产在线| 91精品婷婷国产综合久久竹菊| 欧美日韩情趣电影| 欧美一区日本一区韩国一区| 欧美电影在线免费观看| 欧美一级片免费看| 精品日韩欧美在线| 国产欧美日韩精品一区| 国产精品国产三级国产普通话蜜臀 | 麻豆国产欧美日韩综合精品二区| 天天影视涩香欲综合网| 无吗不卡中文字幕| 久久精品99国产精品| 韩国av一区二区三区在线观看| 久久国产精品色婷婷| 成人久久久精品乱码一区二区三区| 国产成人在线观看免费网站| 成人黄色小视频| 91麻豆国产香蕉久久精品| 欧美影院午夜播放| 欧美成人高清电影在线| 久久久久久亚洲综合| 亚洲精品日日夜夜| 日本午夜精品视频在线观看| 99精品欧美一区二区三区小说| 色94色欧美sute亚洲13| 欧美一区永久视频免费观看| 久久久久久**毛片大全| 亚洲精品乱码久久久久| 日韩精品亚洲专区| 国产v综合v亚洲欧| 欧美性猛交xxxxxxxx| 2023国产精品视频| 亚洲精品福利视频网站| 免费的成人av| 91香蕉视频mp4| 日韩视频永久免费| 亚洲国产精品99久久久久久久久| 亚洲自拍欧美精品| 丁香一区二区三区| 在线播放一区二区三区| 中文字幕一区二区三区在线观看| 午夜电影网亚洲视频| 成人污污视频在线观看| 欧美一区二区三区人| 亚洲欧美成人一区二区三区| 精品一区二区三区香蕉蜜桃| 一本大道久久a久久综合| 久久综合久久久久88| 午夜精品福利一区二区三区av | 日韩在线一区二区| 成人免费视频app| 日韩午夜激情电影| 一区二区三区中文字幕精品精品 | 亚洲成年人影院| 成人白浆超碰人人人人| 日韩精品专区在线| 婷婷综合另类小说色区| 91网站黄www| 欧美国产精品久久| 久久99精品视频| 欧美日韩高清影院| 亚洲美女视频在线| 成人精品免费网站| 久久综合久久综合久久综合| 免费高清成人在线| 欧美精品在线视频| 亚洲第一久久影院| 色999日韩国产欧美一区二区| 国产亲近乱来精品视频| 激情综合网激情| 欧美精品一区二区三区视频| 青青草伊人久久| 欧美人体做爰大胆视频| 一区二区三区欧美视频| 99r国产精品| 国产精品美女久久久久aⅴ国产馆| 久久超级碰视频| 日韩精品一区二区三区在线观看| 亚洲www啪成人一区二区麻豆| 91福利视频久久久久| 亚洲欧美偷拍另类a∨色屁股| 风间由美一区二区av101| 久久网站热最新地址| 国产成人自拍在线| 欧美国产激情一区二区三区蜜月| 国产在线播放一区| 久久精品欧美日韩| 成人午夜精品在线| 最新中文字幕一区二区三区| 成人免费看的视频| 日韩码欧中文字| 色婷婷久久久亚洲一区二区三区| 亚洲色大成网站www久久九九| 色综合网色综合| 亚洲五码中文字幕| 9191久久久久久久久久久| 婷婷综合五月天| 久久日韩精品一区二区五区| 国产又黄又大久久| 国产精品久久网站| 在线免费观看日本欧美| 天天综合天天综合色| 26uuu成人网一区二区三区| 国产成人小视频| 日韩一区中文字幕| 欧美日韩一区二区三区高清| 人人精品人人爱| 欧美激情自拍偷拍| 在线观看av不卡| 国产综合色产在线精品| 中文字幕五月欧美| 欧美精品777|