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
This commit is contained in:
parent
96a3900df6
commit
d46c958bfa
@ -1,3 +1,9 @@
|
||||
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>
|
||||
|
||||
* testsuite/abi/demangle/cxx0x/rref.cc: New.
|
||||
|
@ -79,7 +79,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
||||
* @return The final sum.
|
||||
*/
|
||||
template<typename _InputIterator, typename _Tp>
|
||||
_Tp
|
||||
inline _Tp
|
||||
accumulate(_InputIterator __first, _InputIterator __last, _Tp __init)
|
||||
{
|
||||
// concept requirements
|
||||
@ -105,7 +105,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
||||
* @return The final sum.
|
||||
*/
|
||||
template<typename _InputIterator, typename _Tp, typename _BinaryOperation>
|
||||
_Tp
|
||||
inline _Tp
|
||||
accumulate(_InputIterator __first, _InputIterator __last, _Tp __init,
|
||||
_BinaryOperation __binary_op)
|
||||
{
|
||||
@ -133,7 +133,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
||||
* @return The final inner product.
|
||||
*/
|
||||
template<typename _InputIterator1, typename _InputIterator2, typename _Tp>
|
||||
_Tp
|
||||
inline _Tp
|
||||
inner_product(_InputIterator1 __first1, _InputIterator1 __last1,
|
||||
_InputIterator2 __first2, _Tp __init)
|
||||
{
|
||||
@ -165,7 +165,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
||||
*/
|
||||
template<typename _InputIterator1, typename _InputIterator2, typename _Tp,
|
||||
typename _BinaryOperation1, typename _BinaryOperation2>
|
||||
_Tp
|
||||
inline _Tp
|
||||
inner_product(_InputIterator1 __first1, _InputIterator1 __last1,
|
||||
_InputIterator2 __first2, _Tp __init,
|
||||
_BinaryOperation1 __binary_op1,
|
||||
|
Loading…
Reference in New Issue
Block a user