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

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

?? accumulate.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>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> 

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91亚洲国产成人精品一区二三| 日韩中文字幕亚洲一区二区va在线| 激情都市一区二区| 精品动漫一区二区三区在线观看 | 久久人人爽爽爽人久久久| 久久超碰97中文字幕| 久久久噜噜噜久久人人看| 福利视频网站一区二区三区| 国产精品国产精品国产专区不蜜 | 美女视频黄a大片欧美| 日韩精品中文字幕一区二区三区 | 国产人伦精品一区二区| 波多野结衣一区二区三区| 亚洲猫色日本管| 91精品视频网| 丁香天五香天堂综合| 国产午夜精品久久久久久免费视 | 午夜视频久久久久久| 2024国产精品视频| av不卡在线播放| 秋霞电影一区二区| 成人欧美一区二区三区在线播放| 色老综合老女人久久久| 另类欧美日韩国产在线| 国产精品色呦呦| 欧美私模裸体表演在线观看| 乱一区二区av| 一区二区三区四区在线播放| 欧美一区二区免费| av在线不卡电影| 免费av成人在线| 综合av第一页| 日韩欧美成人午夜| 欧美又粗又大又爽| 国产激情视频一区二区三区欧美| 亚洲一区免费在线观看| 国产婷婷色一区二区三区在线| 日本韩国精品在线| 国产精品1区二区.| 三级欧美韩日大片在线看| 国产精品久久久久久久裸模| 欧美一区二区三区四区五区| jizzjizzjizz欧美| 精品一区二区免费视频| 亚洲国产一区视频| 亚洲国产精品精华液ab| 91精品麻豆日日躁夜夜躁| 日本乱码高清不卡字幕| 丁香激情综合国产| 极品瑜伽女神91| 亚洲h精品动漫在线观看| 国产精品久久久久久亚洲毛片| 日韩亚洲欧美综合| 欧美日韩一区不卡| 一本久久综合亚洲鲁鲁五月天| 国产黄色精品视频| 国产综合色在线视频区| 麻豆免费精品视频| 免费成人美女在线观看.| 天天影视涩香欲综合网| 亚洲精品成人精品456| 国产精品国产三级国产aⅴ无密码| 久久久久青草大香线综合精品| 91精品国产免费久久综合| 在线一区二区三区| 欧美又粗又大又爽| 欧洲av一区二区嗯嗯嗯啊| 99免费精品视频| 成人av动漫在线| 粉嫩av亚洲一区二区图片| 国产高清在线观看免费不卡| 激情小说亚洲一区| 久久国内精品视频| 久久精品国产一区二区三区免费看| 亚洲一卡二卡三卡四卡无卡久久| 国产精品久久福利| 国产精品久久久久久久久晋中| 国产日产亚洲精品系列| 久久婷婷国产综合精品青草| www激情久久| 中文字幕欧美日韩一区| 国产精品美女久久久久久久久久久| 欧美激情一二三区| 中文字幕亚洲欧美在线不卡| 亚洲欧洲精品天堂一级 | 久久亚洲一级片| 久久久久久久久久久久电影| 久久亚洲精精品中文字幕早川悠里 | 性欧美大战久久久久久久久| 视频一区欧美精品| 精品午夜一区二区三区在线观看| 国产麻豆日韩欧美久久| 成人18精品视频| 一本色道a无线码一区v| 欧美精品一二三区| 亚洲精品一线二线三线| 亚洲国产精品二十页| 亚洲另类一区二区| 青娱乐精品视频| 国产精品综合av一区二区国产馆| 国产suv精品一区二区6| 一本大道av一区二区在线播放| 欧美日韩高清影院| 久久影院视频免费| 一区二区三区四区不卡视频| 日韩精品色哟哟| 风间由美中文字幕在线看视频国产欧美| 不卡电影免费在线播放一区| 91精品福利视频| 欧美一区二视频| 国产欧美日本一区视频| 亚洲国产成人精品视频| 精品一区二区免费看| eeuss影院一区二区三区| 欧美日韩不卡在线| 国产亚洲一区二区三区四区| 一区二区三区免费网站| 久久国内精品视频| 日本韩国欧美国产| 精品国产乱子伦一区| 亚洲免费大片在线观看| 国产在线国偷精品产拍免费yy| 97久久久精品综合88久久| 日韩欧美国产一区二区三区 | 一区二区三区四区视频精品免费 | 国产精品一二三| 欧美精品在线视频| 国产精品蜜臀在线观看| 麻豆视频一区二区| 在线欧美一区二区| 久久精品水蜜桃av综合天堂| 亚洲一区二区免费视频| 成人av午夜电影| 日韩你懂的电影在线观看| 亚洲人成亚洲人成在线观看图片 | 国产欧美日韩一区二区三区在线观看| 一区二区三区色| 国产99久久久国产精品潘金网站| 欧美日本在线看| 亚洲欧美色综合| 风间由美一区二区av101| 91精品国产高清一区二区三区蜜臀 | 欧美三级视频在线| 国产精品第五页| 国产成人自拍网| 欧美成人女星排名| 日韩不卡手机在线v区| 欧美综合一区二区三区| 成人免费小视频| 国产91丝袜在线18| 久久久久久9999| 久久成人羞羞网站| 欧美一级艳片视频免费观看| 午夜激情一区二区三区| 欧美色图一区二区三区| 综合av第一页| 色悠悠久久综合| 亚洲日本护士毛茸茸| av午夜精品一区二区三区| 国产日韩欧美综合一区| 国产电影精品久久禁18| 久久影视一区二区| 国产在线视频一区二区三区| 日韩欧美第一区| 激情综合一区二区三区| 91精品国产综合久久小美女| 偷偷要91色婷婷| 欧美一级二级在线观看| 日韩电影在线观看网站| 日韩一区二区三区精品视频| 日日夜夜一区二区| 91精品国产一区二区| 美洲天堂一区二卡三卡四卡视频 | 精品88久久久久88久久久| 美女网站色91| 久久午夜色播影院免费高清| 国产精品99久久久久久似苏梦涵| 久久久久久久av麻豆果冻| 国产69精品久久久久毛片| 中文字幕在线观看一区| 91猫先生在线| 亚洲成人午夜电影| 91麻豆精品国产自产在线| 裸体一区二区三区| 国产色产综合产在线视频| 成av人片一区二区| 亚洲大型综合色站| 精品999在线播放| 99re这里只有精品首页| 亚洲一区二区成人在线观看| 欧美久久免费观看| 久久99精品国产91久久来源| 国产三级久久久| 色老汉av一区二区三区| 青青草成人在线观看| 欧美激情综合在线| 日本道免费精品一区二区三区| 人人超碰91尤物精品国产| 国产日韩欧美高清在线| 在线观看视频一区二区欧美日韩|