Commit d46c958b by Paolo Carlini Committed by Paolo Carlini

re PR libstdc++/33293 (inlining std::inner_product())

2007-09-03  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/33293
	* include/bits/stl_numeric.h (accumulate, inner_product):
	Add inline function-specifier.

From-SVN: r128053
parent 96a3900d
2007-09-03 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/33293
* include/bits/stl_numeric.h (accumulate, inner_product):
Add inline function-specifier.
2007-08-31 Douglas Gregor <doug.gregor@gmail.com> 2007-08-31 Douglas Gregor <doug.gregor@gmail.com>
* testsuite/abi/demangle/cxx0x/rref.cc: New. * testsuite/abi/demangle/cxx0x/rref.cc: New.
......
...@@ -79,7 +79,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -79,7 +79,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* @return The final sum. * @return The final sum.
*/ */
template<typename _InputIterator, typename _Tp> template<typename _InputIterator, typename _Tp>
_Tp inline _Tp
accumulate(_InputIterator __first, _InputIterator __last, _Tp __init) accumulate(_InputIterator __first, _InputIterator __last, _Tp __init)
{ {
// concept requirements // concept requirements
...@@ -105,7 +105,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -105,7 +105,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* @return The final sum. * @return The final sum.
*/ */
template<typename _InputIterator, typename _Tp, typename _BinaryOperation> template<typename _InputIterator, typename _Tp, typename _BinaryOperation>
_Tp inline _Tp
accumulate(_InputIterator __first, _InputIterator __last, _Tp __init, accumulate(_InputIterator __first, _InputIterator __last, _Tp __init,
_BinaryOperation __binary_op) _BinaryOperation __binary_op)
{ {
...@@ -133,7 +133,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -133,7 +133,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* @return The final inner product. * @return The final inner product.
*/ */
template<typename _InputIterator1, typename _InputIterator2, typename _Tp> template<typename _InputIterator1, typename _InputIterator2, typename _Tp>
_Tp inline _Tp
inner_product(_InputIterator1 __first1, _InputIterator1 __last1, inner_product(_InputIterator1 __first1, _InputIterator1 __last1,
_InputIterator2 __first2, _Tp __init) _InputIterator2 __first2, _Tp __init)
{ {
...@@ -165,7 +165,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -165,7 +165,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
*/ */
template<typename _InputIterator1, typename _InputIterator2, typename _Tp, template<typename _InputIterator1, typename _InputIterator2, typename _Tp,
typename _BinaryOperation1, typename _BinaryOperation2> typename _BinaryOperation1, typename _BinaryOperation2>
_Tp inline _Tp
inner_product(_InputIterator1 __first1, _InputIterator1 __last1, inner_product(_InputIterator1 __first1, _InputIterator1 __last1,
_InputIterator2 __first2, _Tp __init, _InputIterator2 __first2, _Tp __init,
_BinaryOperation1 __binary_op1, _BinaryOperation1 __binary_op1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment