|
template<typename InputIterator1 , typename InputIterator2 , typename OutputIterator , check_sum< value_type_i< InputIterator1 >, value_type_i< InputIterator2 >, value_type_i< OutputIterator >> = nullptr> |
void | aaa::add (InputIterator1 first_left, InputIterator1 last_left, InputIterator2 first_right, OutputIterator first_out) |
|
template<typename Element , typename InputIterator , typename OutputIterator , check_sum< Element, value_type_i< InputIterator >, value_type_i< OutputIterator >> = nullptr> |
void | aaa::add (const Element &left, InputIterator first_right, InputIterator last_right, OutputIterator first_out) |
|
template<typename InputIterator , typename Element , typename OutputIterator , check_sum< value_type_i< InputIterator >, Element, value_type_i< OutputIterator >> = nullptr> |
void | aaa::add (InputIterator first_left, InputIterator last_left, const Element &right, OutputIterator first_out) |
|
template<typename Container1 , typename Container2 , typename Container3 , check_sum< value_type< Container1 >, value_type< Container2 >, value_type< Container3 >> = nullptr> |
void | aaa::add (const Container1 &left, const Container2 &right, Container3 &out) |
|
template<typename Element , typename Container1 , typename Container2 , check_sum< Element, value_type< Container1 >, value_type< Container2 >> = nullptr> |
void | aaa::add (const Element &left, const Container1 &right, Container2 &out) |
|
template<typename Container1 , typename Element , typename Container2 , check_sum< value_type< Container1 >, Element, value_type< Container2 >> = nullptr> |
void | aaa::add (const Container1 &left, const Element &right, Container2 &out) |
|
template<typename Container > |
Container | aaa::add (const Container &left, const Container &right) |
|
template<typename Container > |
Container | aaa::add (const Container &left, const value_type< Container > &right) |
|
template<typename Container > |
Container | aaa::add (const value_type< Container > &left, const Container &right) |
|
std::vector<double> in1 = { 1.1, 2.2, 3.3, 4.4, 5.5 };
std::vector<double> in2 = { 1.1, 2.2, 3.3, 4.4, 5.5 };
std::valarray<double> in3 = { 1.1, 2.2, 3.3, 4.4, 5.5 };
std::array<double, 5> in4 = { 1.1, 2.2, 3.3, 4.4, 5.5 };
std::array<double, 9> in5 = { 1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9 };
std::vector<double> out = { 1.1, 2.2, 3.3, 4.4, 5.5 };
out = add(in1, in2);
out = add(2.5, in2);
out = add(in1, 3.3);
add(in3, in4, out);
add(4.9, in4, out);
add(in3, 2.1, out);
add(begin(in5) + 1, begin(in5) + 6, begin(in4), begin(out));
add(4.9, begin(in5) + 1, begin(in5) + 6, begin(out));
add(begin(in5) + 1, begin(in5) + 6, 2.1, begin(out));