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

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

?? search_n.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>search_n</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>search_n</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>Search_n</tt> is an overloaded name; there are actually two <tt>search_n</tt>functions.<pre>template &lt;class <A href="ForwardIterator.html">ForwardIterator</A>, class Integer, class T&gt;ForwardIterator search_n(ForwardIterator first, ForwardIterator last,                         Integer count, const T&amp; value);template &lt;class <A href="ForwardIterator.html">ForwardIterator</A>, class Integer,           class T, class <A href="BinaryPredicate.html">BinaryPredicate</A>&gt;ForwardIterator search_n(ForwardIterator first, ForwardIterator last,                         Integer count, const T&amp; value,                         BinaryPredicate binary_pred);</pre>		   <h3>Description</h3><tt>Search_n</tt> searches for a subsequence of <tt>count</tt> consecutive elements in the range <tt>[first, last)</tt>, all of which are equal to <tt>value</tt>. <A href="#1">[1]</A>It returns an iterator pointing to the beginning of that subsequence,or else <tt>last</tt> if no such subsequence exists.  The two versions of <tt>search_n</tt> differ in how they determine whether two elements are the same:the first uses <tt>operator==</tt>, and the second uses the user-supplied<A href="functors.html">function object</A> <tt>binary_pred</tt>.<P>The first version of <tt>search</tt> returns the first iterator <tt>i</tt> in therange <tt>[first, last - count)</tt> <A href="#2">[2]</A> such that, for every iterator <tt>j</tt> inthe range <tt>[i, i + count)</tt>, <tt>*j == value</tt>.  The second version returns the first iterator <tt>i</tt> in therange <tt>[first, last - count)</tt> such that, for every iterator <tt>j</tt> inthe range <tt>[i, i + count)</tt>, <tt>binary_pred(*j, value)</tt> is <tt>true</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:<UL><LI><tt>ForwardIterator</tt> is a model of <A href="ForwardIterator.html">Forward Iterator</A>.<LI><tt>Integer</tt> is an integral type.<LI><tt>T</tt> is a model of <A href="EqualityComparable.html">EqualityComparable</A>.<LI><tt>ForwardIterator</tt>'s value type is a model of <A href="EqualityComparable.html">EqualityComparable</A>.<LI>Objects of <tt>ForwardIterator</tt>'s value type can be compared for   equality with Objects of type <tt>T</tt>.</UL>For the first version:<UL><LI><tt>ForwardIterator</tt> is a model of <A href="ForwardIterator.html">Forward Iterator</A>.<LI><tt>Integer</tt> is an integral type.<LI><tt>T</tt> is a model of <A href="EqualityComparable.html">EqualityComparable</A>.<LI><tt>BinaryPredicate</tt> is a model of <A href="BinaryPredicate.html">Binary Predicate</A>.<LI><tt>ForwardIterator</tt>'s value type is convertible to <tt>BinaryPredicate</tt>'s   first argument type.<LI><tt>T</tt> is convertible to <tt>BinaryPredicate</tt>'s second argument type.</UL><h3>Preconditions</h3><UL><LI><tt>[first, last)</tt> is a valid range.<LI><tt>count</tt> is non-negative <A href="#1">[1]</A>.</UL><h3>Complexity</h3>Linear.  <tt>Search_n</tt> performs at most <tt>last - first</tt> comparisons.<P>(The C++ standard permits the complexity to be <i>O</i>(<tt>n</tt> (<tt>last</tt> - <tt>first</tt>)),but this is unnecessarily lax.  There is no reason for <tt>search_n</tt> toexamine any element more than once.)<h3>Example</h3><pre>bool eq_nosign(int x, int y) { return abs(x) == abs(y); }void lookup(int* first, int* last, size_t count, int val) {  cout &lt;&lt; &quot;Searching for a sequence of &quot;       &lt;&lt; count       &lt;&lt; &quot; '&quot; &lt;&lt; val &lt;&lt; &quot;'&quot;       &lt;&lt; (count != 1 ? &quot;s: &quot; : &quot;:  &quot;);  int* result = search_n(first, last, count, val);  if (result == last)    cout &lt;&lt; &quot;Not found&quot; &lt;&lt; endl;  else    cout &lt;&lt; &quot;Index = &quot; &lt;&lt; result - first &lt;&lt; endl;}void lookup_nosign(int* first, int* last, size_t count, int val) {  cout &lt;&lt; &quot;Searching for a (sign-insensitive) sequence of &quot;       &lt;&lt; count       &lt;&lt; &quot; '&quot; &lt;&lt; val &lt;&lt; &quot;'&quot;       &lt;&lt; (count != 1 ? &quot;s: &quot; : &quot;:  &quot;);  int* result = search_n(first, last, count, val, eq_nosign);  if (result == last)    cout &lt;&lt; &quot;Not found&quot; &lt;&lt; endl;  else    cout &lt;&lt; &quot;Index = &quot; &lt;&lt; result - first &lt;&lt; endl;}int main() {  const int N = 10;  int A[N] = {1, 2, 1, 1, 3, -3, 1, 1, 1, 1};  lookup(A, A+N, 1, 4);  lookup(A, A+N, 0, 4);  lookup(A, A+N, 1, 1);  lookup(A, A+N, 2, 1);  lookup(A, A+N, 3, 1);  lookup(A, A+N, 4, 1);  lookup(A, A+N, 1, 3);  lookup(A, A+N, 2, 3);  lookup_nosign(A, A+N, 1, 3);  lookup_nosign(A, A+N, 2, 3);}</pre><P>The output is<pre>Searching for a sequence of 1 '4':  Not foundSearching for a sequence of 0 '4's: Index = 0Searching for a sequence of 1 '1':  Index = 0Searching for a sequence of 2 '1's: Index = 2Searching for a sequence of 3 '1's: Index = 6Searching for a sequence of 4 '1's: Index = 6Searching for a sequence of 1 '3':  Index = 4Searching for a sequence of 2 '3's: Not foundSearching for a (sign-insensitive) sequence of 1 '3':  Index = 4Searching for a (sign-insensitive) sequence of 2 '3's: Index = 4</pre><h3>Notes</h3><P><A name="1">[1]</A>Note that <tt>count</tt> is permitted to be zero: a subsequence of zeroelements is well defined.  If you call <tt>search_n</tt> with <tt>count</tt> equalto zero, then the search will always succeed: no matter what <tt>value</tt>is, every range contains a subrange of zero consecutive elements thatare equal to <tt>value</tt>.  When <tt>search_n</tt> is called with <tt>count</tt> equal tozero, the return value is always <tt>first</tt>.<P><A name="2">[2]</A>The reason that this range is <tt>[first, last - count)</tt>, rather thanjust <tt>[first, last)</tt>, is that we are looking for a subsequence whoselength is <tt>count</tt>; an iterator <tt>i</tt> can't be the beginning of such asubsequence unless <tt>last - count</tt> is greater than or equal to <tt>count</tt>.Note the implication of this: you may call <tt>search_n</tt> with argumentssuch that <tt>last - first</tt> is less than <tt>count</tt>, but such a search willalways fail.<h3>See also</h3><tt><A href="search.html">search</A></tt>, <tt><A href="find_end.html">find_end</A></tt>, <tt><A href="find.html">find</A></tt>, <tt><A href="find_if.html">find_if</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一区二区三区免费野_久草精品视频
大尺度一区二区| 洋洋成人永久网站入口| 国产综合久久久久影院| 久久午夜羞羞影院免费观看| 国产成人精品免费看| 国产精品第四页| 日本韩国一区二区| 青青草国产成人99久久| 久久综合九色综合97婷婷| 国产91高潮流白浆在线麻豆 | 亚洲女同ⅹxx女同tv| 在线亚洲一区观看| 首页国产欧美久久| 2021国产精品久久精品| 成人av电影在线| 亚洲国产日韩在线一区模特| 日韩精品一区二| 成人晚上爱看视频| 亚洲综合一区在线| 精品国产免费视频| 91美女视频网站| 久久国产欧美日韩精品| 亚洲欧美怡红院| 制服丝袜亚洲精品中文字幕| 国产成人午夜精品5599| 午夜久久电影网| 国产日韩欧美精品一区| 欧美日韩国产美女| 国产成人在线视频网站| 香蕉成人啪国产精品视频综合网| 久久精品在线免费观看| 欧美久久久久久久久| 国产一区二区伦理片| 亚洲一区二区三区中文字幕| 国产三区在线成人av| 欧美日韩另类一区| 成人免费福利片| 精品在线视频一区| 亚洲影院在线观看| 国产精品剧情在线亚洲| 日韩欧美国产一区二区在线播放 | 日韩一级免费一区| 成人av手机在线观看| 裸体歌舞表演一区二区| 亚洲一区二区中文在线| 国产欧美日韩麻豆91| 欧美大片免费久久精品三p| 色婷婷综合视频在线观看| 国产91对白在线观看九色| 久久精品国产久精国产爱| 亚洲亚洲精品在线观看| 中文字幕色av一区二区三区| 精品sm在线观看| 91精品国产入口| 欧美日韩二区三区| 欧美在线免费观看亚洲| 播五月开心婷婷综合| 国产乱码精品一品二品| 奇米亚洲午夜久久精品| 亚洲超丰满肉感bbw| 一区二区高清视频在线观看| 国产精品久久久久久久久图文区| 国产欧美综合在线观看第十页| 日韩欧美中文一区二区| 欧美日韩高清一区二区三区| 在线亚洲一区二区| 91视频在线看| 色婷婷激情综合| 一本大道av一区二区在线播放 | 色综合视频一区二区三区高清| 国产在线视频一区二区| 精品午夜久久福利影院| 久久99久久99| 国模套图日韩精品一区二区| 精品在线你懂的| 国产一区二区福利视频| 国产精品一区二区三区乱码| 国产成人午夜视频| 成人黄色综合网站| 色综合久久久久久久| 日本韩国欧美一区二区三区| 欧美性生活久久| 91精品国产综合久久香蕉的特点 | 一区二区欧美精品| 一区二区三区日韩精品| 亚洲图片欧美视频| 图片区日韩欧美亚洲| 日本视频免费一区| 精品一区二区三区香蕉蜜桃| 国产馆精品极品| 91网址在线看| 欧美精品色一区二区三区| 日韩欧美综合在线| 国产欧美精品一区二区三区四区| 国产精品高潮呻吟久久| 亚洲自拍偷拍网站| 久久精品国产免费看久久精品| 国产精品白丝jk白祙喷水网站| 99精品国产99久久久久久白柏| 在线一区二区三区| 欧美sm美女调教| 国产精品不卡在线观看| 亚洲国产精品综合小说图片区| 久久超碰97中文字幕| 成人va在线观看| 欧美日韩激情在线| 国产亚洲精品aa| 亚洲综合在线视频| 精品亚洲成a人在线观看| 91同城在线观看| 日韩一区二区三区观看| 国产精品丝袜一区| 亚洲123区在线观看| 国产成人欧美日韩在线电影| 欧美性猛交xxxxxxxx| 国产日韩av一区二区| 亚洲国产精品麻豆| 国产风韵犹存在线视精品| 91九色最新地址| 久久久久国产精品厨房| 亚洲一区二区黄色| 国产成都精品91一区二区三| 欧美日韩国产另类不卡| 中国色在线观看另类| 丝瓜av网站精品一区二区| 成人国产亚洲欧美成人综合网| 欧美精品日韩一区| 中文字幕在线观看不卡视频| 日韩和的一区二区| 91丝袜高跟美女视频| 久久嫩草精品久久久久| 亚洲.国产.中文慕字在线| www.日韩大片| 久久久久综合网| 日本欧美在线观看| 91网上在线视频| 中文天堂在线一区| 国产一区二区三区免费看| 欧美日韩国产一二三| 亚洲色图欧美激情| 国产盗摄一区二区三区| 欧美成人猛片aaaaaaa| 亚洲成a人v欧美综合天堂下载| 91在线观看高清| 国产精品理论片| 国产不卡在线播放| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 久久亚洲二区三区| 日韩中文字幕一区二区三区| 欧美艳星brazzers| 亚洲日本免费电影| 成人h动漫精品一区二区 | 国产精品国产三级国产有无不卡| 理论电影国产精品| 日韩欧美另类在线| 免费观看在线综合| 日韩一级欧美一级| 毛片av中文字幕一区二区| 欧美丰满少妇xxxxx高潮对白| 一区二区久久久| 欧美亚洲自拍偷拍| 亚洲成av人**亚洲成av**| 欧美日韩国产综合一区二区三区| 午夜影院在线观看欧美| 欧美精品日日鲁夜夜添| 男女激情视频一区| 精品国一区二区三区| 国内精品伊人久久久久av一坑| 精品粉嫩aⅴ一区二区三区四区| 久久99精品视频| 久久人人爽人人爽| bt7086福利一区国产| 国产精品久久二区二区| 93久久精品日日躁夜夜躁欧美| 亚洲精品成人悠悠色影视| 国产一区三区三区| 亚洲最大的成人av| 91黄色在线观看| 一区二区三区在线高清| 欧美日韩一级大片网址| 午夜欧美在线一二页| 欧美人体做爰大胆视频| 日本亚洲电影天堂| 精品国产乱码91久久久久久网站| 狠狠色丁香婷婷综合久久片| 国产精品人妖ts系列视频| 94-欧美-setu| 午夜精品123| 久久只精品国产| 97精品国产97久久久久久久久久久久| 亚洲精品日韩专区silk| 欧美日韩精品高清| 国产剧情av麻豆香蕉精品| 国产精品久久久久影视| 欧美午夜一区二区| 另类的小说在线视频另类成人小视频在线 | 国产精品久久久久aaaa| 在线观看日韩高清av| 精品在线你懂的| 日韩精品一区国产麻豆|