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

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

?? sort.html

?? STL_doc
?? 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>sort</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>sort</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>Sort</tt> is an overloaded name; there are actually two <tt>sort</tt>functions.<pre>template &lt;class <A href="RandomAccessIterator.html">RandomAccessIterator</A>&gt;void sort(RandomAccessIterator first, RandomAccessIterator last);template &lt;class RandomAccessIterator, class <A href="StrictWeakOrdering.html">StrictWeakOrdering</A>&gt;void sort(RandomAccessIterator first, RandomAccessIterator last,          StrictWeakOrdering comp);</pre>                   <h3>Description</h3><tt>Sort</tt> sorts the elements in <tt>[first, last)</tt> into ascending order,meaning that if <tt>i</tt> and <tt>j</tt> are any two valid iterators in <tt>[first, last)</tt>such that <tt>i</tt> precedes <tt>j</tt>, then <tt>*j</tt> is not less than <tt>*i</tt>.  Note:<tt>sort</tt> is not guaranteed to be stable.  That is, suppose that <tt>*i</tt>and <tt>*j</tt> are equivalent: neither one is less than the other.  It isnot guaranteed that the relative order of these two elements will bepreserved by <tt>sort</tt>. <A href="#1">[1]</A><P>The two versions of <tt>sort</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 usinga <A href="functors.html">function object</A> <tt>comp</tt>.<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, the one that takes two arguments:<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 href="LessThanComparable.html">LessThan Comparable</A>.<LI>The ordering relation on <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, the one that takes three arguments:<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><UL><LI><tt>[first, last)</tt> is a valid range.</UL><h3>Complexity</h3><tt>O(N log(N))</tt> comparisons (both average and worst-case), where <tt>N</tt> is <tt>last - first</tt>. <A href="#2">[2]</A><h3>Example</h3><pre>int A[] = {1, 4, 2, 8, 5, 7};const int N = sizeof(A) / sizeof(int);sort(A, A + N);copy(A, A + N, ostream_iterator&lt;int&gt;(cout, &quot; &quot;));// The output is &quot; 1 2 4 5 7 8&quot;.</pre><h3>Notes</h3><P><A name="1">[1]</A>Stable sorting is sometimes important if you are sorting recordsthat have multiple fields: you might, for example, want to sort a listof people by first name and then by last name.  The algorithm <tt><A href="stable_sort.html">stable_sort</A></tt> does guarantee to preserve the relative orderingof equivalent elements.<P><A name="2">[2]</A>Earlier versions of <tt>sort</tt> used the <i>quicksort</i> algorithm (C. A. R. Hoare,<i>Comp. J.</i> <b>5</b>, 1962), using a pivot chosen by median of three (R. C. Singleton, <i>CACM</i> <b>12</b>, 1969).  Quicksort has<tt>O(N log(N))</tt> average complexity, but quadratic worst-casecomplexity.  See section 5.2.2 of Knuth for a discussion. (D. E. Knuth, <i>The Art of Computer Programming.  Volume 3: Sorting and Searching</i>. Addison-Wesley, 1975.)  The current implementationof <tt>sort</tt>, however, uses the <i>introsort</i> algorithm (D. R.Musser, &quot;Introspective Sorting and Selection Algorithms&quot;, <i>Software Practice and Experience</i> <b>27</b>(8):983, 1997.)whose worst case complexity is <tt>O(N log(N))</tt>.Introsort is very similar to median-of-three quicksort, and is atleast as fast as quicksort on average.<h3>See also</h3><tt><A href="stable_sort.html">stable_sort</A></tt>,<tt><A href="partial_sort.html">partial_sort</A></tt>,<tt><A href="partial_sort_copy.html">partial_sort_copy</A></tt>,<tt><A href="sort_heap.html">sort_heap</A></tt>,<tt><A href="is_sorted.html">is_sorted</A></tt>,<tt><A href="binary_search.html">binary_search</A></tt>,<tt><A href="lower_bound.html">lower_bound</A></tt>,<tt><A href="upper_bound.html">upper_bound</A></tt>,<tt><A href="less.html">less</A>&lt;T&gt;</tt>,<A href="StrictWeakOrdering.html">StrictWeakOrdering</A>,<A href="LessThanComparable.html">LessThan Comparable</A><!--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一区二区三区免费野_久草精品视频
一区二区三区欧美视频| 日欧美一区二区| 国产精品视频一区二区三区不卡| 精品日韩一区二区| 欧美电影精品一区二区| 欧美成人午夜电影| www激情久久| 亚洲国产精品成人综合色在线婷婷 | 欧美精品在线观看一区二区| 欧美日韩专区在线| 日韩一级免费观看| 久久精品这里都是精品| 中文字幕日韩av资源站| 亚洲成人777| 国内成+人亚洲+欧美+综合在线 | 亚洲免费成人av| 亚洲午夜在线观看视频在线| 石原莉奈一区二区三区在线观看| 精品无人区卡一卡二卡三乱码免费卡| 国产精品99久久久久久久vr| 99精品视频在线播放观看| 欧美老肥妇做.爰bbww视频| 精品国产123| 一区二区三区四区av| 青青草一区二区三区| 国产91精品一区二区麻豆网站| 日本乱人伦一区| 精品久久久久久久久久久久久久久| 国产精品人人做人人爽人人添| 亚洲成av人影院| 成人一级片网址| 3d成人h动漫网站入口| 国产精品免费av| 婷婷一区二区三区| 成a人片亚洲日本久久| 欧美一区二区三区爱爱| 亚洲人成网站在线| 国产麻豆精品在线| 欧美日韩国产综合一区二区| 国产校园另类小说区| 视频在线观看91| 99久久夜色精品国产网站| 7777精品伊人久久久大香线蕉的 | 亚洲免费av网站| 国产一区二区三区高清播放| 91福利资源站| 国产精品沙发午睡系列990531| 三级影片在线观看欧美日韩一区二区| 国产成人欧美日韩在线电影| 日韩午夜激情免费电影| 一区二区三区国产精华| 国产精品正在播放| 精品国产91乱码一区二区三区| 同产精品九九九| 在线观看亚洲a| ...av二区三区久久精品| 国产精品一级片| 精品久久久久久久久久久久包黑料 | 26uuu成人网一区二区三区| 亚洲高清视频的网址| 一本一道久久a久久精品| 久久―日本道色综合久久| 日本在线播放一区二区三区| 欧美自拍偷拍午夜视频| 亚洲乱码中文字幕综合| 99精品视频一区| 中文字幕一区日韩精品欧美| 亚洲最大色网站| 欧美唯美清纯偷拍| 亚洲精品欧美专区| 91网站视频在线观看| 亚洲三级在线播放| 一本一本久久a久久精品综合麻豆| 国产精品欧美极品| 成人免费毛片片v| 日韩伦理免费电影| 91国产免费观看| 亚洲第一久久影院| 欧美精品一级二级三级| 麻豆91在线观看| 精品福利视频一区二区三区| 国产成人在线视频网站| 中文字幕欧美一区| 一本到一区二区三区| 午夜一区二区三区在线观看| 欧美日韩中文字幕精品| 毛片一区二区三区| 国产日产欧产精品推荐色 | 亚洲国产va精品久久久不卡综合| 欧美视频日韩视频在线观看| 日韩精品电影在线| 久久精品夜夜夜夜久久| 色综合亚洲欧洲| 日本不卡高清视频| 国产偷国产偷精品高清尤物 | 成+人+亚洲+综合天堂| 亚洲在线一区二区三区| 精品少妇一区二区三区免费观看 | 亚洲综合在线视频| 欧美一区二区三区免费视频| 国产曰批免费观看久久久| 中文字幕一区二区三区四区| 欧美日韩国产一区| 懂色中文一区二区在线播放| 亚洲精品一卡二卡| 欧美不卡一区二区| 91在线播放网址| 精品在线播放免费| 一区二区三区四区在线播放| 精品久久久久香蕉网| 一本久久精品一区二区| 国产在线精品一区二区不卡了| 亚洲女与黑人做爰| 久久综合久久久久88| 欧美性猛片xxxx免费看久爱| 国产999精品久久| 三级影片在线观看欧美日韩一区二区| 中文字幕成人在线观看| 欧美精品色一区二区三区| 成人国产电影网| 久久99精品国产.久久久久| 国产精品污www在线观看| 色素色在线综合| 精品一区二区三区视频在线观看| 中文字幕一区二区三区视频| ww亚洲ww在线观看国产| 欧美日韩国产一区| 色欧美88888久久久久久影院| 狠狠色狠狠色合久久伊人| 亚洲图片一区二区| 亚洲男人的天堂av| 国产精品久久久久久久久动漫 | 日本一区二区三级电影在线观看| 欧美图区在线视频| 99热在这里有精品免费| 国模冰冰炮一区二区| 日韩电影免费一区| 一区二区三区影院| ㊣最新国产の精品bt伙计久久| 久久综合久久久久88| 精品少妇一区二区三区| 欧美一区二区二区| 在线成人高清不卡| 7777精品伊人久久久大香线蕉最新版| 91福利小视频| 欧美日韩一卡二卡三卡 | 欧美精品一区二区在线播放| 日韩一区二区精品葵司在线| 日韩亚洲欧美综合| 精品国产乱码久久久久久闺蜜| 日韩网站在线看片你懂的| 欧美一区二区三区影视| 日韩精品中文字幕在线一区| 日韩美女视频在线| 久久久久国产一区二区三区四区 | 国产成人精品亚洲午夜麻豆| 国产精品一区二区黑丝| 成人免费观看视频| 99精品视频一区二区| 在线观看欧美精品| 91精品国产黑色紧身裤美女| 精品日韩av一区二区| 国产日韩三级在线| 亚洲免费视频中文字幕| 亚洲国产美国国产综合一区二区| 亚洲国产精品久久久久婷婷884| 亚洲大型综合色站| 美国欧美日韩国产在线播放| 国产精品自拍在线| 一本久久精品一区二区| 56国语精品自产拍在线观看| 欧美精品一区二区三区四区| 国产精品色婷婷| 午夜精品久久久| 国产精品1区2区| 日本高清成人免费播放| 91精品国产欧美一区二区18| 久久精品视频一区二区| 亚洲午夜精品一区二区三区他趣| 蜜臀精品久久久久久蜜臀| 成人激情黄色小说| 欧美日韩一二三区| 国产精品午夜免费| 亚洲一区二区精品3399| 国产在线看一区| 欧美综合久久久| 国产日韩欧美精品综合| 香蕉影视欧美成人| jlzzjlzz亚洲日本少妇| 91精品午夜视频| 国产精品毛片久久久久久久| 日本在线不卡一区| 色丁香久综合在线久综合在线观看| 欧美成人精品二区三区99精品| 一区二区三区四区中文字幕| 国产成人午夜电影网| 日韩三级电影网址| 亚洲一区在线观看网站| 成人的网站免费观看| 精品久久久久久久久久久久包黑料|