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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? sort.html

?? ISO_C++:C++_STL開發(fā)文檔
?? HTML
字號(hào):
<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> 

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本一区二区视频在线观看| 26uuu精品一区二区在线观看| 国产精品不卡一区二区三区| 激情av综合网| 欧美大度的电影原声| 日韩成人精品在线观看| 8v天堂国产在线一区二区| 天天色综合成人网| 欧美美女一区二区在线观看| 午夜欧美在线一二页| 欧美日韩二区三区| 首页国产丝袜综合| 欧美一级欧美三级| 麻豆成人免费电影| 2020日本不卡一区二区视频| 国产麻豆精品在线观看| 久久久久久电影| 国产成人精品免费网站| 国产欧美精品日韩区二区麻豆天美| 国产在线视视频有精品| 国产日韩在线不卡| av电影一区二区| 亚洲色图视频网站| 欧洲av在线精品| 天堂成人免费av电影一区| 88在线观看91蜜桃国自产| 蜜臀av一区二区在线观看| www国产成人| 不卡一区在线观看| 一区二区三区中文字幕精品精品| 在线一区二区三区四区五区 | 一区二区三区四区不卡视频 | 欧美天天综合网| 日韩成人一区二区三区在线观看| 欧美v亚洲v综合ⅴ国产v| 国产精品夜夜嗨| 亚洲欧洲在线观看av| 91精彩视频在线观看| 日韩成人免费电影| 久久精品欧美一区二区三区麻豆| 99精品视频在线观看免费| 亚洲香蕉伊在人在线观| 欧美岛国在线观看| 99亚偷拍自图区亚洲| 亚洲一区成人在线| 欧美电影免费观看高清完整版在线| 国产精品原创巨作av| 亚洲柠檬福利资源导航| 91精品国产欧美一区二区18 | 国内精品久久久久影院色| 亚洲欧洲精品一区二区三区不卡| 欧美影院午夜播放| 美女在线一区二区| 国产精品福利一区二区三区| 欧美日韩一级二级三级| 国产在线精品一区二区不卡了 | 欧美麻豆精品久久久久久| 日韩精品一区二区三区在线观看 | 亚洲欧美激情在线| 国产日韩av一区| 欧美精品一区二区在线观看| 国产91精品在线观看| 一区二区三区在线观看动漫 | 99精品视频一区| 日韩影视精彩在线| 中文字幕av免费专区久久| 欧美性videosxxxxx| 国产精品一区二区久久精品爱涩 | 亚洲国产激情av| 欧美日韩不卡在线| 成人毛片视频在线观看| 天天综合色天天综合色h| 国产欧美一区视频| 欧美丰满嫩嫩电影| 99久久99久久精品免费看蜜桃| 日韩高清中文字幕一区| 亚洲欧洲成人自拍| 欧美大黄免费观看| 欧美色综合影院| 成人免费视频播放| 麻豆精品在线看| 一区二区不卡在线视频 午夜欧美不卡在| 欧美电视剧在线看免费| 在线观看区一区二| 高清在线不卡av| 免费人成黄页网站在线一区二区| 日韩美女视频19| 久久婷婷成人综合色| 欧美日韩免费一区二区三区| www.性欧美| 国产精品综合二区| 秋霞国产午夜精品免费视频| 亚洲乱码一区二区三区在线观看| 久久九九影视网| 日韩午夜在线观看| 欧美日韩免费一区二区三区| 99免费精品在线观看| 国精品**一区二区三区在线蜜桃| 午夜av一区二区三区| 亚洲图片欧美激情| 国产清纯白嫩初高生在线观看91 | 精品国产一区二区三区久久影院 | 欧美一区二区三区免费| 欧美综合亚洲图片综合区| a亚洲天堂av| 国产电影一区在线| 国模一区二区三区白浆| 美女尤物国产一区| 偷拍与自拍一区| 亚洲综合在线免费观看| 亚洲欧洲色图综合| 国产日韩精品久久久| 久久一二三国产| 欧美v国产在线一区二区三区| 91精品免费在线观看| 欧美三级电影在线观看| 在线一区二区视频| 91蝌蚪porny成人天涯| 不卡的av电影| 成人一级视频在线观看| 国产九色精品成人porny| 国产真实乱子伦精品视频| 九九在线精品视频| 激情另类小说区图片区视频区| 久久精品久久综合| 久久99精品一区二区三区三区| 日韩不卡手机在线v区| 日韩黄色免费网站| 全国精品久久少妇| 日韩成人一区二区| 麻豆极品一区二区三区| 奇米在线7777在线精品| 美国毛片一区二区| 韩国视频一区二区| 国产精品一区二区视频| 国产一区二区视频在线| 国产毛片精品视频| 国产成人午夜精品5599 | 成人精品高清在线| 成人黄色免费短视频| 91天堂素人约啪| 在线这里只有精品| 欧美精品自拍偷拍动漫精品| 欧美久久久久免费| 777午夜精品视频在线播放| 日韩亚洲欧美在线观看| 2020日本不卡一区二区视频| 国产日产精品一区| 最新不卡av在线| 亚洲精品国产视频| 三级精品在线观看| 麻豆专区一区二区三区四区五区| 国产在线精品一区二区三区不卡| 国产精品亚洲一区二区三区妖精| 国产+成+人+亚洲欧洲自线| 91网站在线播放| 欧美日韩综合在线| 欧美一区二区日韩一区二区| 2020日本不卡一区二区视频| 国产精品麻豆一区二区| 亚洲人成亚洲人成在线观看图片| 亚洲国产一二三| 美女视频黄a大片欧美| 国产伦精品一区二区三区免费迷 | 亚洲一区二区三区四区在线免费观看| 亚洲一二三四区| 久久成人麻豆午夜电影| 欧美无乱码久久久免费午夜一区| 欧美日韩亚洲综合在线| 精品乱人伦一区二区三区| 国产欧美日韩精品一区| 亚洲影院理伦片| 精品一区二区三区在线观看国产| 国产成人免费视频网站| 91黄色免费看| 日韩欧美一卡二卡| 中文字幕一区二| 天堂在线一区二区| 国产乱码精品一区二区三| 色综合av在线| 欧美一区二区三级| 亚洲国产成人自拍| 亚洲在线免费播放| 国产在线视频一区二区| 色婷婷综合久久| 日韩一级成人av| 国产精品福利一区| 天天色天天爱天天射综合| 国产一区二区91| 欧美无人高清视频在线观看| 久久免费偷拍视频| 亚洲一区二区三区自拍| 国产原创一区二区三区| 在线视频观看一区| 精品国产91洋老外米糕| 亚洲一区二区三区小说| 丁香六月久久综合狠狠色| 欧美夫妻性生活| 日韩理论在线观看| 国产一区免费电影|