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

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

?? accumulate.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>accumulate</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>accumulate</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>Accumulate</tt> is an overloaded name; there are actually two <tt>accumulate</tt>functions.<pre>template &lt;class <A href="InputIterator.html">InputIterator</A>, class T&gt;T accumulate(InputIterator first, InputIterator last, T init);template &lt;class <A href="InputIterator.html">InputIterator</A>, class T, class <A href="BinaryFunction.html">BinaryFunction</A>&gt;T accumulate(InputIterator first, InputIterator last, T init,             BinaryFunction binary_op);</pre>                   <h3>Description</h3><tt>Accumulate</tt> is a generalization of summation: it computes the sum(or some other binary operation) of <tt>init</tt> and all of the elementsin the range <tt>[first, last)</tt>.  <A href="#1">[1]</A>  <P>The <A href="functors.html">function object</A> <tt>binary_op</tt> is not required to be eithercommutative or associative: the order of all of <tt>accumulate</tt>'s operationsis specified.  The result is first initialized to <tt>init</tt>.  Then, for eachiterator <tt>i</tt> in <tt>[first, last)</tt>, in order from beginning to end,it is updated by <tt>result = result + *i</tt> (in the first version) or<tt>result = binary_op(result, *i)</tt> (in the second version).<h3>Definition</h3>Defined in the standard header <A href="numeric">numeric</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>InputIterator</tt> is a model of <A href="InputIterator.html">Input Iterator</A>.<LI><tt>T</tt> is a model of <A href="Assignable.html">Assignable</A>.<LI>If <tt>x</tt> is an object of type <tt>T</tt> and <tt>y</tt> is an object of   <tt>InputIterator</tt>'s value type, then <tt>x + y</tt> is defined.<LI>The return type of <tt>x + y</tt> is convertible to <tt>T</tt>.</UL>For the second version, the one that takes three arguments:<UL><LI><tt>InputIterator</tt> is a model of <A href="InputIterator.html">Input Iterator</A>.<LI><tt>T</tt> is a model of <A href="Assignable.html">Assignable</A>.<LI><tt>BinaryFunction</tt> is a model of <A href="BinaryFunction.html">Binary Function</A>.<LI><tt>T</tt> is convertible to <tt>BinaryFunction</tt>'s first argument type.<LI>The value type of <tt>InputIterator</tt> is convertible to   <tt>BinaryFunction</tt>'s second argument type.<LI><tt>BinaryFunction</tt>'s return type is convertible to <tt>T</tt>.</UL><h3>Preconditions</h3><UL><LI><tt>[first, last)</tt> is a valid range.</UL><h3>Complexity</h3>Linear.  Exactly <tt>last - first</tt> invocations of the binary operation.<h3>Example</h3><pre>int main(){  int A[] = {1, 2, 3, 4, 5};  const int N = sizeof(A) / sizeof(int);  cout &lt;&lt; &quot;The sum of all elements in A is &quot;        &lt;&lt; accumulate(A, A + N, 0)       &lt;&lt; endl;  cout &lt;&lt; &quot;The product of all elements in A is &quot;       &lt;&lt; accumulate(A, A + N, 1, multiplies&lt;int&gt;())       &lt;&lt; endl;}</pre><h3>Notes</h3><P><A name="1">[1]</A>There are several reasons why it is important that <tt>accumulate</tt>starts with the value <tt>init</tt>.  One of the most basic is that thisallows <tt>accumulate</tt> to have a well-defined result even if <tt>[first,last)</tt> is an empty range: if it is empty, the return value is <tt>init</tt>.If you want to find the sum of all of the elements in <tt>[first, last)</tt>,you can just pass <tt>0</tt> as <tt>init</tt>.<h3>See also</h3><tt><A href="inner_product.html">inner_product</A></tt>, <tt><A href="partial_sum.html">partial_sum</A></tt>, <tt><A href="adjacent_difference.html">adjacent_difference</A></tt>,<tt><A href="count.html">count</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一区二区三区免费野_久草精品视频
精品粉嫩aⅴ一区二区三区四区| 亚洲视频网在线直播| 中文字幕乱码亚洲精品一区| 自拍偷自拍亚洲精品播放| 欧美aaaaa成人免费观看视频| 国产suv精品一区二区三区| 欧美羞羞免费网站| 亚洲国产精品黑人久久久| 日日夜夜免费精品| 色婷婷精品久久二区二区蜜臀av | 这里是久久伊人| 亚洲欧洲另类国产综合| 亚洲男人的天堂av| 蜜桃久久久久久| 久久综合久久鬼色| 不卡的av中国片| 色八戒一区二区三区| 2021中文字幕一区亚洲| 日精品一区二区| 在线亚洲一区二区| 国产精品私人自拍| 国产成人在线网站| 欧美成人三级在线| 男男gaygay亚洲| 91精品国产日韩91久久久久久| 亚洲综合在线第一页| 99国产一区二区三精品乱码| 久久久噜噜噜久噜久久综合| 久久精品国产精品亚洲红杏 | 久久夜色精品国产噜噜av| 午夜精品久久久久久久久久| 91尤物视频在线观看| 中文字幕乱码一区二区免费| 国产精品12区| 久久精品人人爽人人爽| 国产精品亚洲专一区二区三区 | 一区二区免费看| 91久久精品一区二区三区| 亚洲色图在线播放| 欧美午夜一区二区三区| 亚洲成人一区二区在线观看| 9191久久久久久久久久久| 亚洲香肠在线观看| 制服丝袜中文字幕亚洲| 免费观看久久久4p| 久久先锋影音av鲁色资源网| 国产一二精品视频| 国产精品美女久久久久久| 成人av资源下载| 亚洲视频一二区| 欧美人动与zoxxxx乱| 日韩中文字幕91| 精品美女在线播放| 粉嫩av一区二区三区粉嫩| 中文字幕日韩一区| 欧美性色aⅴ视频一区日韩精品| 亚洲成av人片在线观看无码| 日韩一区国产二区欧美三区| 精品夜夜嗨av一区二区三区| 国产午夜精品久久久久久免费视| 成人av高清在线| 五月天国产精品| 久久精品欧美日韩| 色综合久久久久综合99| 久久国产精品99久久久久久老狼| 26uuu国产日韩综合| 成人激情综合网站| 免费在线成人网| 成人免费小视频| 欧美日韩国产成人在线91| 国产在线一区二区| 亚洲欧洲综合另类在线| 欧美日韩精品一区二区在线播放| 狠狠网亚洲精品| 亚洲精品久久久蜜桃| 日韩一级片网址| 91在线观看高清| 久久精品久久精品| 亚洲卡通欧美制服中文| 91精品国产日韩91久久久久久| 成人av影视在线观看| 石原莉奈在线亚洲二区| 一区二区中文视频| 精品国产精品网麻豆系列| 91小视频免费看| 国产精品自拍三区| 日本美女一区二区| 一级精品视频在线观看宜春院| 久久久久久亚洲综合| 欧美羞羞免费网站| 97aⅴ精品视频一二三区| 美女视频一区在线观看| 一级做a爱片久久| 国产精品久久久久久久裸模| 欧美剧情片在线观看| 91在线视频播放| 成人开心网精品视频| 精品亚洲成a人| 奇米影视一区二区三区| 一区二区三区美女视频| 中文字幕第一页久久| 精品国产乱码久久久久久牛牛| 欧美午夜不卡视频| 91亚洲男人天堂| 成人精品免费视频| 国产成人精品综合在线观看| 久久99精品久久久久婷婷| 五月激情六月综合| 亚洲美女在线一区| 亚洲同性同志一二三专区| 久久精品一级爱片| 2014亚洲片线观看视频免费| 91精品欧美一区二区三区综合在| 欧美三级资源在线| 欧美日韩精品一区视频| 欧美日韩久久久一区| 欧美日韩亚洲不卡| 欧美久久久影院| 欧美午夜宅男影院| 欧美日韩高清在线| 欧美日韩亚洲综合一区| 欧美日韩视频在线一区二区| 欧美男同性恋视频网站| 5月丁香婷婷综合| 日韩一区二区在线看| 精品少妇一区二区三区日产乱码| 7777精品久久久大香线蕉| 91精品国产91久久久久久一区二区| 欧美日韩国产电影| 精品免费日韩av| 国产精品高潮久久久久无| 亚洲精品高清在线观看| 亚洲综合色成人| 青娱乐精品视频| 国内久久婷婷综合| 97久久精品人人爽人人爽蜜臀 | 中文字幕精品综合| 亚洲欧美一区二区久久| 亚洲国产精品麻豆| 美女视频免费一区| 成人在线一区二区三区| 99久久久精品免费观看国产蜜| 91麻豆产精品久久久久久| 欧美亚洲一区三区| 精品国产一区二区在线观看| 中文字幕不卡在线| 亚洲一区二区av在线| 天天影视网天天综合色在线播放| 日韩福利电影在线| 国产一区二区三区精品欧美日韩一区二区三区 | 亚洲主播在线播放| 婷婷亚洲久悠悠色悠在线播放| 久久99深爱久久99精品| 激情久久久久久久久久久久久久久久| 久久99精品久久久久久动态图| 国产一区二区视频在线| 久久国产精品99久久人人澡| 国产成人精品三级麻豆| 91免费观看视频| 91麻豆精品国产自产在线观看一区| 26uuu色噜噜精品一区| 国产精品久久久久久户外露出| 亚洲人成网站精品片在线观看| 亚洲电影激情视频网站| 亚洲欧美成人一区二区三区| 日韩高清不卡在线| 粉嫩av一区二区三区在线播放| 欧美精品在线观看播放| 欧美一区欧美二区| 一区二区三区精品视频| 秋霞午夜av一区二区三区| 国产精品一区在线观看乱码| 成人免费高清在线观看| 日韩欧美一卡二卡| 亚洲视频免费在线观看| 免费高清在线一区| 99久久精品国产毛片| 精品国产乱码久久久久久久久| 亚洲欧美中日韩| 免费成人在线视频观看| 在线视频一区二区三| 精品国产污网站| 亚洲成在人线在线播放| 国产成人av电影免费在线观看| 欧美一区二区黄| 亚洲综合视频在线观看| 国产一区二区三区在线观看免费 | 6080亚洲精品一区二区| 国产精品欧美一级免费| 亚洲小说春色综合另类电影| 91啦中文在线观看| 久久精品人人做| 另类小说视频一区二区| 欧美高清dvd| 亚洲一卡二卡三卡四卡无卡久久| 国产综合成人久久大片91| 777久久久精品| 午夜精彩视频在线观看不卡| www.日本不卡| 国产精品美女久久久久久久久|