Debian Codegraph @

headers/numeric

raw
1 /* Copyright (C) 2015 Povilas Kanapickas <[email protected]>
2
3 This file is part of cppreference-doc
4
5 This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
6 Unported License. To view a copy of this license, visit
7 http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative
8 Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
9
10 Permission is granted to copy, distribute and/or modify this document
11 under the terms of the GNU Free Documentation License, Version 1.3 or
12 any later version published by the Free Software Foundation; with no
13 Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
14 */
15
16 #ifndef CPPREFERENCE_NUMERIC_H
17 #define CPPREFERENCE_NUMERIC_H
18 namespace std {
19
20 template<class ForwardIterator, class T>
21 void iota(ForwardIterator first, ForwardIterator last, T value);
22
23 template<class InputIt, class T>
24 T accumulate(InputIt first, InputIt last, T init);
25
26 template<class InputIt, class T, class BinaryOperation>
27 T accumulate(InputIt first, InputIt last, T init,
28 BinaryOperation op);
29
30 template<class InputIt1, class InputIt2, class T>
31 T inner_product(InputIt1 first1, InputIt1 last1,
32 InputIt2 first2, T value);
33
34 template<class InputIt1, class InputIt2, class T,
35 class BinaryOperation1, class BinaryOperation2>
36 T inner_product(InputIt1 first1, InputIt1 last1,
37 InputIt2 first2, T value,
38 BinaryOperation1 op1,
39 BinaryOperation2 op2);
40
41 template<class InputIt, class OutputIt>
42 OutputIt adjacent_difference(InputIt first, InputIt last,
43 OutputIt d_first);
44
45 template<class InputIt, class OutputIt, class BinaryOperation>
46 OutputIt adjacent_difference(InputIt first, InputIt last,
47 OutputIt d_first, BinaryOperation op);
48
49 template<class InputIt, class OutputIt>
50 OutputIt partial_sum(InputIt first, InputIt last, OutputIt d_first);
51
52 template<class InputIt, class OutputIt, class BinaryOperation>
53 OutputIt partial_sum(InputIt first, InputIt last, OutputIt d_first,
54 BinaryOperation op);
55 } // namespace std
56
57 #endif // CPPREFERENCE_NUMERIC_H
58