Please enable JavaScript.
Coggle requires JavaScript to display documents.
STL, Other stuff - Coggle Diagram
STL
Containers
-
Vector
- To get sum of all elements
accumulate(first_index, last_index, initial value of sum);
similarly can be used in array with
accumulate(a, a+n, initial value of sum);
myvector= {1, 2, 3, 4, 5}, iterator= 2
-
-
-
Other stuff
-
- to find array least element
-