Auxiliary Arithmetic Algorithms
|
Functions | |
template<typename InputIterator , typename OutputIterator > | |
void | aaa::convert (InputIterator first_in, InputIterator last_in, OutputIterator first_out) |
template<typename Container1 , typename Container2 > | |
void | aaa::convert (const Container1 &in, Container2 &out) |
template<typename InputIterator , typename T = value_type_i<InputIterator>> | |
T | aaa::sum (InputIterator first, InputIterator last, T init=T{}) |
template<typename Container , typename T = value_type<Container>> | |
T | aaa::sum (const Container &container, T init=T{}) |
void aaa::convert | ( | InputIterator | first_in, |
InputIterator | last_in, | ||
OutputIterator | first_out | ||
) |
Does elementwise static_cast
on the elements from one range to another range.
void aaa::convert | ( | const Container1 & | in, |
Container2 & | out | ||
) |
Does elementwise static_cast
on the elements from one container to another container.
T aaa::sum | ( | InputIterator | first, |
InputIterator | last, | ||
T | init = T{} |
||
) |
Computes the sum of the elements of a range.
T aaa::sum | ( | const Container & | container, |
T | init = T{} |
||
) |
Computes the sum of the elements of a container.