]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/include/parallel/base.h
base.h: Added plus and multiplies functor for differently typed objects.
authorJohannes Singler <singler@ira.uka.de>
Mon, 8 Oct 2007 21:14:45 +0000 (21:14 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Mon, 8 Oct 2007 21:14:45 +0000 (21:14 +0000)
commit0e6c9eaa5c0c9bf00972834f3a47e5146bd47dee
treeda17effa76d21f3f47f27ae04cc5bc0c5c968251
parent9de88093b6e322a53b20ea23560ca3cd753120ec
base.h: Added plus and multiplies functor for differently typed objects.

2007-10-08  Johannes Singler  <singler@ira.uka.de>

* include/parallel/base.h: Added plus and multiplies functor
       for differently typed objects.
* include/parallel/numeric: Use it.
* include/parallel/for_each_selectors.h: Allowed different types.
* include/parallel/partial_sum.h: Fixed return value.
* testsuite/26_numerics/accumulate/1.cc: Tests for accumulate.
* testsuite/26_numerics/inner_product/1.cc: Tests for inner_product.

From-SVN: r129140
libstdc++-v3/ChangeLog
libstdc++-v3/include/parallel/base.h
libstdc++-v3/include/parallel/for_each_selectors.h
libstdc++-v3/include/parallel/numeric
libstdc++-v3/include/parallel/partial_sum.h
libstdc++-v3/testsuite/26_numerics/accumulate/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/26_numerics/inner_product/1.cc [new file with mode: 0644]