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

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

?? randomaccessiterator.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>Random Access Iterator</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>Random Access Iterator</H1><Table CellPadding=0 CellSpacing=0 width=100%><TR><TD Align=left><Img src = "iterators.gif" Alt=""   WIDTH = "194"  HEIGHT = "38" ></TD><TD Align=right><Img src = "concept.gif" Alt=""   WIDTH = "194"  HEIGHT = "38" ></TD></TR><TR><TD Align=left VAlign=top><b>Category</b>: iterators</TD><TD Align=right VAlign=top><b>Component type</b>: concept</TD></TR></Table><h3>Description</h3>A Random Access Iterator is an iterator that provides bothincrement and decrement (just like a <A href="BidirectionalIterator.html">Bidirectional Iterator</A>),and that also provides constant-time methods for moving forwardand backward in arbitrary-sized steps.  Random Access Iteratorsprovide essentially all of the operations of ordinaryC pointer arithmetic.<h3>Refinement of</h3><A href="BidirectionalIterator.html">Bidirectional Iterator</A>, <A href="LessThanComparable.html">LessThan Comparable</A><h3>Associated types</h3>The same as for <A href="BidirectionalIterator.html">Bidirectional Iterator</A><h3>Notation</h3><Table><TR><TD VAlign=top><tt>X</tt></TD><TD VAlign=top>A type that is a model of Random Access Iterator</TD></TR><TR><TD VAlign=top><tt>T</tt></TD><TD VAlign=top>The value type of <tt>X</tt></TD></TR><TR><TD VAlign=top><tt>Distance</tt></TD><TD VAlign=top>The distance type of <tt>X</tt></TD></TR><TR><TD VAlign=top><tt>i</tt>, <tt>j</tt></TD><TD VAlign=top>Object of type <tt>X</tt></TD></TR><TR><TD VAlign=top><tt>t</tt></TD><TD VAlign=top>Object of type <tt>T</tt></TD></TR><TR><TD VAlign=top><tt>n</tt></TD><TD VAlign=top>Object of type <tt>Distance</tt></TD></tr></table><h3>Definitions</h3><h3>Valid expressions</h3>In addition to the expressions defined in <A href="BidirectionalIterator.html">Bidirectional Iterator</A>,the following expressions must be valid.<Table border><TR><TH>Name</TH><TH>Expression</TH><TH>Type requirements</TH><TH>Return type</TH></TR><TR><TD VAlign=top>Iterator addition</TD><TD VAlign=top><tt>i += n</tt></TD><TD VAlign=top>&nbsp;</TD><TD VAlign=top><tt>X&amp;</tt></TD></TR><TR><TD VAlign=top>Iterator addition</TD><TD VAlign=top><tt>i + n</tt> or <tt>n + i</tt></TD><TD VAlign=top>&nbsp;</TD><TD VAlign=top><tt>X</tt></TD></TR><TR><TD VAlign=top>Iterator subtraction</TD><TD VAlign=top><tt>i -= n</tt></TD><TD VAlign=top>&nbsp;</TD><TD VAlign=top><tt>X&amp;</tt></TD></TR><TR><TD VAlign=top>Iterator subtraction</TD><TD VAlign=top><tt>i - n</tt></TD><TD VAlign=top>&nbsp;</TD><TD VAlign=top><tt>X</tt></TD></TR><TR><TD VAlign=top>Difference</TD><TD VAlign=top><tt>i - j</tt></TD><TD VAlign=top>&nbsp;</TD><TD VAlign=top><tt>Distance</tt></TD></TR><TR><TD VAlign=top>Element operator</TD><TD VAlign=top><tt>i[n]</tt></TD><TD VAlign=top>&nbsp;</TD><TD VAlign=top>Convertible to <tt>T</tt></TD></TR><TR><TD VAlign=top>Element assignment</TD><TD VAlign=top><tt>i[n] = t</tt></TD><TD VAlign=top><tt>X</tt> is mutable</TD><TD VAlign=top>Convertible to <tt>T</tt></TD></tr></table><h3>Expression semantics</h3>Semantics of an expression is defined only where it differs from,or is not defined in, <A href="BidirectionalIterator.html">Bidirectional Iterator</A> or <A href="LessThanComparable.html">LessThan Comparable</A>.<Table border><TR><TH>Name</TH><TH>Expression</TH><TH>Precondition</TH><TH>Semantics</TH><TH>Postcondition</TH></TR><TR><TD VAlign=top>Forward motion</TD><TD VAlign=top><tt>i += n</tt></TD><TD VAlign=top>Including <tt>i</tt> itself, there must be <tt>n</tt> dereferenceable or   past-the-end iterators following or preceding <tt>i</tt>, depending   on whether <tt>n</tt> is positive or negative.</TD><TD VAlign=top>If <tt>n &gt; 0</tt>, equivalent to executing <tt>++i</tt> <tt>n</tt> times.  If <tt>n &lt; 0</tt>,   equivalent to executing <tt>--i</tt> <tt>n</tt> times.  If <tt>n == 0</tt>, this is   a null operation. <A href="#1">[1]</A></TD><TD VAlign=top><tt>i</tt> is dereferenceable or past-the-end.</TD></TR><TR><TD VAlign=top>Iterator addition</TD><TD VAlign=top><tt>i + n</tt> or <tt>n + i</tt></TD><TD VAlign=top>Same as for <tt>i += n</tt></TD><TD VAlign=top>Equivalent to <tt>{ X tmp = i; return tmp += n; }</tt>.  The two forms   <tt>i + n</tt> and <tt>n + i</tt> are identical.</TD><TD VAlign=top>Result is dereferenceable or past-the-end</TD></TR><TR><TD VAlign=top>Iterator subtraction</TD><TD VAlign=top><tt>i -= n</tt></TD><TD VAlign=top>Including <tt>i</tt> itself, there must be <tt>n</tt> dereferenceable or   past-the-end iterators preceding  or following <tt>i</tt>, depending   on whether <tt>n</tt> is positive or negative.</TD><TD VAlign=top>Equivalent to <tt>i += (-n)</tt>.</TD><TD VAlign=top><tt>i</tt> is dereferenceable or past-the-end.</TD></TR><TR><TD VAlign=top>Iterator subtraction</TD><TD VAlign=top><tt>i - n</tt></TD><TD VAlign=top>Same as for <tt>i -= n</tt></TD><TD VAlign=top>Equivalent to <tt>{ X tmp = i; return tmp -= n; }</tt>.</TD><TD VAlign=top>Result is dereferenceable or past-the-end</TD></TR><TR><TD VAlign=top>Difference</TD><TD VAlign=top><tt>i - j</tt></TD><TD VAlign=top>Either <tt>i</tt> is reachable from <tt>j</tt> or <tt>j</tt> is reachable from <tt>i</tt>, or both.</TD><TD VAlign=top>Returns a number <tt>n</tt> such that <tt>i == j + n</tt></TD><TD VAlign=top>&nbsp;</TD></TR><TR><TD VAlign=top>Element operator</TD><TD VAlign=top><tt>i[n]</tt></TD><TD VAlign=top><tt>i + n</tt> exists and is dereferenceable.</TD><TD VAlign=top>Equivalent to <tt>*(i + n)</tt> <A href="#2">[2]</A></TD><TD VAlign=top>&nbsp;</TD></TR><TR><TD VAlign=top>Element assignment</TD><TD VAlign=top><tt>i[n] = t</tt></TD><TD VAlign=top><tt>i + n</tt> exists and is dereferenceable.</TD><TD VAlign=top>Equivalent to <tt>*(i + n) = t</tt> <A href="#2">[2]</A></TD><TD VAlign=top><tt>i[n]</tt> is a copy of <tt>t</tt>.</TD></TR><TR><TD VAlign=top>Less</TD><TD VAlign=top><tt>i &lt; j</tt></TD><TD VAlign=top>Either <tt>i</tt> is reachable from <tt>j</tt> or <tt>j</tt> is reachable from <tt>i</tt>, or both. <A href="#3">[3]</A></TD><TD VAlign=top>As described in <A href="LessThanComparable.html">LessThan Comparable</A> <A href="#4">[4]</A></TD><TD VAlign=top>&nbsp;</TD></tr></table><h3>Complexity guarantees</h3>All operations on Random Access Iterators are amortized constanttime. <A href="#5">[5]</A><h3>Invariants</h3><Table border><TR><TD VAlign=top>Symmetry of addition and subtraction</TD><TD VAlign=top>If <tt>i + n</tt> is well-defined, then <tt>i += n; i -= n;</tt> and <tt>(i + n) - n</tt>   are null operations.  Similarly, if <tt>i - n</tt> is well-defined,    then <tt>i -= n; i += n;</tt> and <tt>(i - n) + n</tt> are null operations.</TD></TR><TR><TD VAlign=top>Relation between distance and addition</TD><TD VAlign=top>If <tt>i - j</tt> is well-defined, then <tt>i == j + (i - j)</tt>.</TD></TR><TR><TD VAlign=top>Reachability and distance</TD><TD VAlign=top>If <tt>i</tt> is reachable from <tt>j</tt>, then <tt>i - j &gt;= 0</tt>.</TD></TR><TR><TD VAlign=top>Ordering</TD><TD VAlign=top><tt>operator &lt;</tt> is a strict weak ordering, as defined in   <A href="LessThanComparable.html">LessThan Comparable</A>.</TD></tr></table><h3>Models</h3><UL><LI><tt>T*</tt><LI><tt><A href="Vector.html">vector</A>&lt;T&gt;::iterator</tt><LI><tt><A href="Vector.html">vector</A>&lt;T&gt;::const_iterator</tt><LI><tt><A href="Deque.html">deque</A>&lt;T&gt;::iterator</tt><LI><tt><A href="Deque.html">deque</A>&lt;T&gt;::const_iterator</tt></UL><h3>Notes</h3><P><A name="1">[1]</A>&quot;Equivalent to&quot; merely means that <tt>i += n</tt> yields the same iteratoras if <tt>i</tt> had been incremented (decremented) <tt>n</tt> times.  It doesnot mean that this is how <tt>operator+=</tt> should be implemented; in fact,this is not a permissible implementation.  It is guaranteed that <tt>i += n</tt>is amortized constant time, regardless of the magnitude of <tt>n</tt>. <A href="#5">[5]</A><P><A name="2">[2]</A>One minor syntactic oddity: in C, if <tt>p</tt> is a pointer and<tt>n</tt> is an int, then <tt>p[n]</tt> and <tt>n[p]</tt> are equivalent.  This equivalenceis not guaranteed, however, for Random Access Iterators:  only <tt>i[n]</tt> need be supported.  This isn't a terribly important restriction,though, since the equivalence of <tt>p[n]</tt> and <tt>n[p]</tt> has essentiallyno application except for obfuscated C contests.<P><A name="3">[3]</A>The precondition defined in <A href="LessThanComparable.html">LessThan Comparable</A> is that <tt>i</tt>and <tt>j</tt> be in the domain of <tt>operator &lt;</tt>.  Essentially, then, thisis a definition of that domain: it is the set of pairs of iterators suchthat one iterator is reachable from the other.  <P><A name="4">[4]</A>All of the other comparison operators have the same domain andare defined in terms of <tt>operator &lt;</tt>, so they have exactly the samesemantics as described in <A href="LessThanComparable.html">LessThan Comparable</A>.<P><A name="5">[5]</A>This complexity guarantee is in fact the only reason whyRandom Access Iterator exists as a distinct concept.  Everyoperation in iterator arithmetic can be defined for <A href="BidirectionalIterator.html">Bidirectional Iterators</A>; in fact, that is exactly what the algorithms <tt><A href="advance.html">advance</A></tt> and <tt><A href="distance.html">distance</A></tt> do.  The distinction issimply that the <A href="BidirectionalIterator.html">Bidirectional Iterator</A> implementations arelinear time, while Random Access Iterators are required to supportrandom access to elements in amortized constant time.  This hasmajor implications for the sorts of algorithms that can sensiblybe written using the two types of iterators.<h3>See also</h3><A href="LessThanComparable.html">LessThan Comparable</A>, <A href="trivial.html">Trivial Iterator</A>, <A href="BidirectionalIterator.html">Bidirectional Iterator</A>, <A href="Iterators.html">Iterator overview</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一区二区三区免费野_久草精品视频
精品久久久久久久久久久久久久久 | 丝袜美腿亚洲色图| 91一区二区在线观看| 久久综合久久综合久久| 国产一区中文字幕| 欧美一区二区三区喷汁尤物| 国产精品第一页第二页第三页| 国产又粗又猛又爽又黄91精品| 日韩三级视频在线看| 视频一区中文字幕| 日韩美女视频在线| 免费成人性网站| 欧美精品一区二区蜜臀亚洲| 老司机精品视频在线| 精品久久久久久久久久久院品网 | 国产传媒一区在线| 国产日韩欧美精品综合| 国产成人综合在线观看| 成人欧美一区二区三区在线播放| 成人黄色小视频| 亚洲精品国产无套在线观| 色婷婷av一区二区三区软件| 亚洲精品国产无套在线观| 91成人免费网站| 欧美日韩精品高清| 天堂一区二区在线免费观看| 日韩精品一区国产麻豆| 韩国女主播成人在线| 亚洲精品在线观| 成人av电影在线| 亚洲国产日韩在线一区模特| 欧美一区二区三区在线观看视频| 韩国v欧美v亚洲v日本v| 亚洲国产精品传媒在线观看| 懂色av一区二区三区蜜臀| 亚洲欧美偷拍卡通变态| 欧美老女人第四色| 国产老妇另类xxxxx| 亚洲国产成人私人影院tom| 91一区在线观看| 蜜桃av一区二区| 国产精品嫩草久久久久| 91麻豆精品国产91久久久久久| 精品一区二区免费视频| 久久久久久久久岛国免费| 99久久亚洲一区二区三区青草| 99re热这里只有精品视频| 91精品国产色综合久久ai换脸| 国产一区二区三区免费在线观看| 国产亚洲一区二区三区| 色综合色狠狠综合色| 婷婷一区二区三区| 国产精品美女久久久久久久网站| 欧美丰满美乳xxx高潮www| 丁香网亚洲国际| 免费成人av在线| 亚洲品质自拍视频网站| 精品久久久久久最新网址| 一本色道久久综合亚洲aⅴ蜜桃| 亚洲主播在线播放| 国产欧美日韩另类一区| 欧美一区二区精品在线| 色诱亚洲精品久久久久久| 国产一区二区三区免费| 亚洲欧洲色图综合| 国产日韩成人精品| 91精品国产一区二区三区| 99精品视频在线观看| 国产一区二区三区香蕉| 日本不卡视频在线观看| 国产高清久久久久| 中文字幕的久久| 精品国精品国产尤物美女| 欧洲精品在线观看| www.欧美.com| 国产一区二区女| 麻豆精品在线观看| 亚洲国产精品久久久男人的天堂 | 秋霞午夜av一区二区三区| 亚洲香肠在线观看| 国产午夜精品一区二区三区四区| 在线观看91精品国产入口| 色综合久久中文综合久久97| 成人午夜私人影院| 国产精品中文欧美| 激情av综合网| 国模冰冰炮一区二区| 蜜臀久久99精品久久久久久9| 欧美国产欧美综合| 日韩一卡二卡三卡四卡| 7878成人国产在线观看| 欧美性感一区二区三区| 91国模大尺度私拍在线视频| 91美女视频网站| 91亚洲精品久久久蜜桃网站| 蜜臀av一区二区在线观看| 亚洲图片一区二区| 偷拍与自拍一区| 日本欧美久久久久免费播放网| 首页亚洲欧美制服丝腿| 男女性色大片免费观看一区二区 | 久久99国内精品| 久久99久久99小草精品免视看| 青青草成人在线观看| 美腿丝袜亚洲综合| 国产永久精品大片wwwapp| 国产精品888| 成人精品一区二区三区中文字幕| 成人app软件下载大全免费| 97se亚洲国产综合自在线| 91在线码无精品| 国产激情精品久久久第一区二区 | 欧美四级电影在线观看| 91久久精品国产91性色tv| 欧美亚洲精品一区| 日韩三级视频在线看| 欧美剧情片在线观看| 日韩亚洲欧美高清| 久久精品夜色噜噜亚洲a∨| 国产精品三级视频| 亚洲国产精品麻豆| 丝袜亚洲另类丝袜在线| 7777精品久久久大香线蕉| 久久久天堂av| 亚洲成人午夜影院| 不卡av免费在线观看| 欧美一级二级在线观看| 中文字幕佐山爱一区二区免费| 免费看欧美美女黄的网站| 色一区在线观看| 国产亚洲一区二区三区在线观看| 丝袜美腿亚洲综合| 91免费国产视频网站| 国产丝袜美腿一区二区三区| 亚洲乱码国产乱码精品精的特点| 欧美年轻男男videosbes| 久久久久久影视| 日本成人在线电影网| 色综合久久天天| 中文字幕精品一区二区精品绿巨人| 亚洲高清在线精品| 91色在线porny| 日本一区二区三区在线不卡| 免费高清视频精品| 69堂国产成人免费视频| 一区二区三区产品免费精品久久75| 成人激情视频网站| 欧美高清在线视频| 国产精品影视网| 精品国产制服丝袜高跟| 视频一区二区三区中文字幕| 91官网在线观看| 亚洲激情五月婷婷| 99精品久久久久久| 一区在线播放视频| 成人性生交大片免费看中文网站| 久久综合九色综合97婷婷| 精品在线观看免费| 精品女同一区二区| 久久超级碰视频| 日韩精品一区二区三区四区| 日韩精品电影一区亚洲| 欧美日韩成人一区| 日韩激情中文字幕| 日韩欧美的一区| 激情六月婷婷久久| 精品sm捆绑视频| 国产精品夜夜嗨| 国产精品理论片在线观看| 成人动漫一区二区在线| 中文字幕一区二区三区不卡在线| 成人福利在线看| 亚洲免费资源在线播放| 欧洲人成人精品| 丝袜美腿亚洲综合| 欧美大胆人体bbbb| 国产精品系列在线观看| 中文字幕乱码日本亚洲一区二区| 丰满白嫩尤物一区二区| 亚洲天堂福利av| 欧美日韩一区高清| 久久99久久久久| 欧美激情一区二区三区四区| 91麻豆蜜桃一区二区三区| 亚洲在线视频免费观看| 日韩欧美一二区| 韩国av一区二区三区| 国产精品国产a级| 欧美日韩高清一区| 九九热在线视频观看这里只有精品| 欧美日韩国产影片| 亚洲a一区二区| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 国产成人综合自拍| 综合久久国产九一剧情麻豆| 欧美日韩一区二区欧美激情| 日韩电影在线一区二区三区| 久久久99精品久久| 欧美日韩亚洲高清一区二区| 国产在线精品一区二区不卡了|