Auxiliary Arithmetic Algorithms
Misc Operations

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>>
aaa::sum (InputIterator first, InputIterator last, T init=T{})
 
template<typename Container , typename T = value_type<Container>>
aaa::sum (const Container &container, T init=T{})
 

Detailed Description

Function Documentation

template<typename InputIterator , typename OutputIterator >
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.

template<typename Container1 , typename Container2 >
void aaa::convert ( const Container1 &  in,
Container2 &  out 
)

Does elementwise static_cast on the elements from one container to another container.

template<typename InputIterator , typename T = value_type_i<InputIterator>>
T aaa::sum ( InputIterator  first,
InputIterator  last,
init = T{} 
)

Computes the sum of the elements of a range.

template<typename Container , typename T = value_type<Container>>
T aaa::sum ( const Container &  container,
init = T{} 
)

Computes the sum of the elements of a container.